summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Kendall <mkendall@mythtv.org>2011-02-10 13:14:22 (GMT)
committer Mark Kendall <mkendall@mythtv.org>2011-02-10 13:14:22 (GMT)
commitb2597320082b67da3e7bb71ebbae40f6440fa41b (patch)
tree314f1c99a589dd475ac54abf5b8dbef6ff1ac32a
parent48d554ebec88fbdbe4af935cb5a262b089ba7b84 (diff)
fixes/0.24: Workaround windows OpenGL current context issues.
-rw-r--r--mythtv/libs/libmythui/mythrender_opengl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/mythtv/libs/libmythui/mythrender_opengl.cpp b/mythtv/libs/libmythui/mythrender_opengl.cpp
index 677a15d..2d3e00a 100644
--- a/mythtv/libs/libmythui/mythrender_opengl.cpp
+++ b/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();