Skip to content

Commit

Permalink
Windows: Don't release the OpenGL context.
Browse files Browse the repository at this point in the history
The release method was added to prevent lockups when the GL context is
accessed from another thread but there should now be no circumstance
under which any other thread makes the UI OpenGL context current (on
windows at least). Not releasing makes OpenGL video rendering work again
on windows when using OpenGL for the UI.

Refs #9268
  • Loading branch information
Mark Kendall committed Jun 23, 2011
1 parent 2ab7b52 commit 5813cda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythui/mythrender_opengl.cpp
Expand Up @@ -102,8 +102,10 @@ void MythRenderOpenGL::doneCurrent()

void MythRenderOpenGL::Release(void)
{
#if !defined(Q_WS_WIN)
while (m_lock_level > 0)
doneCurrent();
#endif
}

void MythRenderOpenGL::MoveResizeWindow(const QRect &rect)
Expand Down

0 comments on commit 5813cda

Please sign in to comment.