diff options
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index ca61f0edd482..12b3f7c1fc9a 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -844,7 +844,8 @@ void OpenGLContext::makeCurrent() SAL_WARN("vcl.opengl", "OpenGLContext::makeCurrent(): wglMakeCurrent failed: " << GetLastError()); } #elif defined( MACOSX ) - CGLSetCurrentContext(m_aGLWin.context); + CGLError nError = CGLSetCurrentContext(m_aGLWin.context); + SAL_WARN_IF(nError != kCGLNoError, "vcl.opengl", "error in makeCurrent"); #elif defined( IOS ) || defined( ANDROID ) // nothing #elif defined( UNX ) @@ -857,7 +858,8 @@ void OpenGLContext::resetCurrent() #if defined( WNT ) wglMakeCurrent( m_aGLWin.hDC, 0 ); #elif defined( MACOSX ) - CGLSetCurrentContext(NULL); + CGLError nError = CGLSetCurrentContext(NULL); + SAL_WARN_IF(nError != kCGLNoError, "vcl.opengl", "error in makeCurrent"); #elif defined( IOS ) || defined( ANDROID ) // nothing #elif defined( UNX ) |