| 1225 | // }} |
| 1226 | |
| 1227 | void vtkXOpenGLRenderWindow::MakeCurrent() |
| 1228 | { |
| 1229 | // load GLX |
| 1230 | if (!this->EnsureGLX()) |
| 1231 | { |
| 1232 | return; |
| 1233 | } |
| 1234 | // when debugging XErrors uncomment the following lines |
| 1235 | // if (this->DisplayId) |
| 1236 | // { |
| 1237 | // vtkXSynchronize(this->DisplayId,1); |
| 1238 | // } |
| 1239 | // vtkXSetErrorHandler(vtkXError); |
| 1240 | if (this->Internal->ContextId && |
| 1241 | ((this->Internal->ContextId != glXGetCurrentContext()) || this->ForceMakeCurrent)) |
| 1242 | { |
| 1243 | glXMakeCurrent(this->DisplayId, this->WindowId, this->Internal->ContextId); |
| 1244 | this->ForceMakeCurrent = 0; |
| 1245 | } |
| 1246 | } |
| 1247 | |
| 1248 | void vtkXOpenGLRenderWindow::ReleaseCurrent() |
| 1249 | { |
no test coverage detected