Navigation Menu

Skip to content

Commit

Permalink
MythRenderOpenGL: Don't create MythMainWindow in GetOpenGLRender
Browse files Browse the repository at this point in the history
- fixed a startup crash for non-GUI applications
  • Loading branch information
mark-kendall committed Sep 30, 2019
1 parent 1251f19 commit 743c1ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/libs/libmythui/mythrender_opengl.cpp
Expand Up @@ -67,6 +67,10 @@ OpenGLLocker::~OpenGLLocker()

MythRenderOpenGL* MythRenderOpenGL::GetOpenGLRender(void)
{
// Don't try and create the window
if (!HasMythMainWindow())
return nullptr;

MythMainWindow* window = MythMainWindow::getMainWindow();
if (!window)
return nullptr;
Expand Down

0 comments on commit 743c1ed

Please sign in to comment.