Commit 36001042 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

qt: fix swapping buffer without making correct context current.

When using a debug build of Qt, we would get warning messages like the

  QOpenGLContext::swapBuffers() called without corresponding

These popped when resizing the widget, for example. This fixes that
issue by ensuring that the context is current before issuing a
swapBuffers call.
parent 23ec83e4
......@@ -203,8 +203,8 @@ void QVTKOpenGLWindow::Frame()
// VTK just did a render, tell Qt to swap buffers
if(this->RenderWindow->GetSwapBuffers() || this->RenderWindow->GetDoubleBuffer() == 0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment