Kaydet (Commit) 8c8965ca authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Andras Timar

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 bc535264
...@@ -1397,7 +1397,7 @@ bool OpenGLContext::isCurrent() ...@@ -1397,7 +1397,7 @@ bool OpenGLContext::isCurrent()
return false; return false;
#elif defined( UNX ) #elif defined( UNX )
GLXDrawable nDrawable = mbPixmap ? m_aGLWin.glPix : m_aGLWin.win; GLXDrawable nDrawable = mbPixmap ? m_aGLWin.glPix : m_aGLWin.win;
return (glXGetCurrentContext() == m_aGLWin.ctx && return (m_aGLWin.ctx && glXGetCurrentContext() == m_aGLWin.ctx &&
glXGetCurrentDrawable() == nDrawable); glXGetCurrentDrawable() == nDrawable);
#endif #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