Kaydet (Commit) 367fa7d8 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Michael Meeks

avoid some OpenGL calls when vcl OpenGL is not enabled

There are even more and it is causing a number of performance issues.
This just fixes the most obvious place.

Change-Id: Id85c13b5b7f4bb0bc077e62c39258067e17c0094
Signed-off-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst 6f3c2bdb
......@@ -1397,7 +1397,7 @@ bool OpenGLContext::isCurrent()
return false;
#elif defined( UNX )
GLXDrawable nDrawable = mbPixmap ? m_aGLWin.glPix : m_aGLWin.win;
return (glXGetCurrentContext() == m_aGLWin.ctx &&
return (m_aGLWin.ctx && glXGetCurrentContext() == m_aGLWin.ctx &&
glXGetCurrentDrawable() == nDrawable);
#endif
}
......
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