summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-08-12 06:03:14 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-08-12 06:04:54 +0200
commit882db332c117b115dd2515274d45a456a328ba34 (patch)
tree5eaedb43b4540acafc72c84deeb8e9073e87562e /vcl
parenta1bed60da4d3f21cb713e5730e81e08a383dd1fc (diff)
add some error reporting to OSX OpenGL context code
Change-Id: I09f9a60b596a0b12a5031bb3db406d8ab6af0b89
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx6
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 )