Skip to content

Commit

Permalink
VideoOutputOpenGL: Use a shared OpenGL context for OpenGL video and UI.
Browse files Browse the repository at this point in the history
This should fix:-

- blank OpenGL video playback on OS X.
- framebuffer 'confusion' where the driver gets stuck displaying a UI
context backbuffer during video playback and vica-versa. Seen on intel
clarkdale and AMD with the proprietary driver.

This also clears the way for VAAPI integration and the removal of
context locking and switching code that is reducing performance and
breaking OpenGL rendering on windows.

In the medium term, integrated video and UI rendering is now
straightforward.

Refs #9268
Refs #8593
  • Loading branch information
Mark Kendall committed Jun 17, 2011
1 parent 499a414 commit 6846e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videoout_opengl.cpp
Expand Up @@ -277,7 +277,7 @@ bool VideoOutputOpenGL::SetupContext(void)
return false;
}

//gl_context = dynamic_cast<MythRenderOpenGL*>(win->GetRenderDevice());
gl_context = dynamic_cast<MythRenderOpenGL*>(win->GetRenderDevice());
if (gl_context)
{
gl_context->UpRef();
Expand Down

0 comments on commit 6846e14

Please sign in to comment.