diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2015-01-20 02:07:06 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2015-01-20 12:03:56 +0100 |
commit | 9becabc9bd0ef07fbeb42af7076a1a0a66d767a4 (patch) | |
tree | d97e2959bcb1a291bb5b9fd19cd54647899ce6d2 /vcl | |
parent | 8384350ee6abb69043ec3c063cabdd02c340696d (diff) |
only enable these error handlers in dbgutil builds
They might become expensive with our repeated calls to makeCurrent
Change-Id: I1d30460f2cad34c6ab676754682651422e545c90
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index db4f90ea97fb..1812a08c2713 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -709,7 +709,9 @@ bool OpenGLContext::init(Display* dpy, Pixmap pix, unsigned int width, unsigned bool OpenGLContext::ImplInit() { GLXContext pSharedCtx( NULL ); +#ifdef DBG_UTIL TempErrorHandler aErrorHandler(m_aGLWin.dpy, unxErrorHandler); +#endif SAL_INFO("vcl.opengl", "OpenGLContext::ImplInit----start"); @@ -1341,7 +1343,9 @@ void OpenGLContext::makeCurrent() #elif defined( IOS ) || defined( ANDROID ) // nothing #elif defined( UNX ) +#ifdef DBG_UTIL TempErrorHandler aErrorHandler(m_aGLWin.dpy, unxErrorHandler); +#endif GLXDrawable nDrawable = mbPixmap ? m_aGLWin.glPix : m_aGLWin.win; if (!glXMakeCurrent( m_aGLWin.dpy, nDrawable, m_aGLWin.ctx )) |