diff --git a/src/gui/canvas/OpenGLCanvas.cpp b/src/gui/canvas/OpenGLCanvas.cpp index 23d575fd..33beccf4 100644 --- a/src/gui/canvas/OpenGLCanvas.cpp +++ b/src/gui/canvas/OpenGLCanvas.cpp @@ -90,7 +90,15 @@ bool GLCanvas_MakeCurrent(bool padView) void GLCanvas_SwapBuffers(bool swapTV, bool swapDRC) { if (swapTV && sGLTVView) + { + GLCanvas_MakeCurrent(false); sGLTVView->SwapBuffers(); + } if (swapDRC && sGLPadView) + { + GLCanvas_MakeCurrent(true); sGLPadView->SwapBuffers(); -} \ No newline at end of file + } + + GLCanvas_MakeCurrent(false); +}