Skip to content
Snippets Groups Projects
Commit 68600b1f authored by Lucas Gandel's avatar Lucas Gandel
Browse files

Make context current before resizing to VTK window size

parent 65890470
No related branches found
No related tags found
No related merge requests found
......@@ -296,6 +296,7 @@ void QVTKOpenGLWindow::ResizeToVTKWindow()
// Cocoa will start overriding any glViewport calls in application code.
// For reference, see QCocoaWindow::initialize().
#ifdef __APPLE__
this->MakeCurrent();
int* rwSize = this->RenderWindow->GetSize();
this->resize(rwSize[0], rwSize[1]);
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment