Skip to content

Commit

Permalink
fix QT>=6.4 segfault by always setting surface type
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchcapper committed Dec 4, 2024
1 parent 134590c commit bbfd44b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mythtv/libs/libmythui/opengl/mythrenderopengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,12 +541,10 @@ void MythRenderOpenGL::SetWidget(QWidget *Widget)
return;
}

#ifdef Q_OS_ANDROID
// Ensure surface type is always OpenGL
m_window->setSurfaceType(QWindow::OpenGLSurface);
if (native && native->windowHandle())
native->windowHandle()->setSurfaceType(QWindow::OpenGLSurface);
#endif

#ifdef USING_QTWEBENGINE
auto * globalcontext = QOpenGLContext::globalShareContext();
Expand Down

0 comments on commit bbfd44b

Please sign in to comment.