• Utkarsh Ayachit's avatar
    qt: fix swapping buffer without making correct context current. · 36001042
    Utkarsh Ayachit authored
    When using a debug build of Qt, we would get warning messages like the
    following:
    
      QOpenGLContext::swapBuffers() called without corresponding
      makeCurrent()
    
    These popped when resizing the widget, for example. This fixes that
    issue by ensuring that the context is current before issuing a
    swapBuffers call.
    36001042
QVTKOpenGLWindow.cxx 18 KB