Kaydet (Commit) 9becabc9 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

only enable these error handlers in dbgutil builds

They might become expensive with our repeated calls to makeCurrent

Change-Id: I1d30460f2cad34c6ab676754682651422e545c90
üst 8384350e
...@@ -709,7 +709,9 @@ bool OpenGLContext::init(Display* dpy, Pixmap pix, unsigned int width, unsigned ...@@ -709,7 +709,9 @@ bool OpenGLContext::init(Display* dpy, Pixmap pix, unsigned int width, unsigned
bool OpenGLContext::ImplInit() bool OpenGLContext::ImplInit()
{ {
GLXContext pSharedCtx( NULL ); GLXContext pSharedCtx( NULL );
#ifdef DBG_UTIL
TempErrorHandler aErrorHandler(m_aGLWin.dpy, unxErrorHandler); TempErrorHandler aErrorHandler(m_aGLWin.dpy, unxErrorHandler);
#endif
SAL_INFO("vcl.opengl", "OpenGLContext::ImplInit----start"); SAL_INFO("vcl.opengl", "OpenGLContext::ImplInit----start");
...@@ -1341,7 +1343,9 @@ void OpenGLContext::makeCurrent() ...@@ -1341,7 +1343,9 @@ void OpenGLContext::makeCurrent()
#elif defined( IOS ) || defined( ANDROID ) #elif defined( IOS ) || defined( ANDROID )
// nothing // nothing
#elif defined( UNX ) #elif defined( UNX )
#ifdef DBG_UTIL
TempErrorHandler aErrorHandler(m_aGLWin.dpy, unxErrorHandler); TempErrorHandler aErrorHandler(m_aGLWin.dpy, unxErrorHandler);
#endif
GLXDrawable nDrawable = mbPixmap ? m_aGLWin.glPix : m_aGLWin.win; GLXDrawable nDrawable = mbPixmap ? m_aGLWin.glPix : m_aGLWin.win;
if (!glXMakeCurrent( m_aGLWin.dpy, nDrawable, m_aGLWin.ctx )) if (!glXMakeCurrent( m_aGLWin.dpy, nDrawable, m_aGLWin.ctx ))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment