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
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 ))
......
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