Skip to content

Commit

Permalink
fixes/0.24: Workaround windows OpenGL current context issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Kendall committed Feb 10, 2011
1 parent 48d554e commit b259732
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythui/mythrender_opengl.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit b259732

Please sign in to comment.