Permalink
Browse files

fixes/0.24: Workaround windows OpenGL current context issues.

  • Loading branch information...
1 parent 48d554e commit b2597320082b67da3e7bb71ebbae40f6440fa41b Mark Kendall committed Feb 10, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 mythtv/libs/libmythui/mythrender_opengl.cpp
@@ -139,8 +139,10 @@ void MythRenderOpenGL::makeCurrent()
void MythRenderOpenGL::doneCurrent()
{
m_lock_level--;
+#ifndef Q_OS_WIN32
if (m_lock_level == 0)
QGLContext::doneCurrent();
+#endif
if (m_lock_level < 0)
VERBOSE(VB_IMPORTANT, LOC_ERR + "Mis-matched calls to makeCurrent()");
m_lock->unlock();

0 comments on commit b259732

Please sign in to comment.