Commit d97b99d0 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Kitware Robot
Browse files

Merge topic 'fix-qt-issues'

36001042

 qt: fix swapping buffer without making correct context current.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Mathieu Westphal's avatarMathieu Westphal <mathieu.westphal@kitware.com>
Merge-request: !4484
parents 29388959 36001042
......@@ -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)
{
this->context()->swapBuffers(this->context()->surface());
this->context()->makeCurrent(this->context()->surface());
this->context()->swapBuffers(this->context()->surface());
}
}
......
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