From 69d08b0d00a23332e9dc124210487b25d9589daa Mon Sep 17 00:00:00 2001 From: Klaas de Waal Date: Sun, 12 Jan 2025 19:43:18 +0100 Subject: [PATCH] Revert development patch for Qt issue Revert the development for the Qt issue that was accidentally commited as part of commit 49be1f0 --- mythtv/libs/libmythui/opengl/mythrenderopengl.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mythtv/libs/libmythui/opengl/mythrenderopengl.cpp b/mythtv/libs/libmythui/opengl/mythrenderopengl.cpp index e10725a82ff..e0bab337c81 100644 --- a/mythtv/libs/libmythui/opengl/mythrenderopengl.cpp +++ b/mythtv/libs/libmythui/opengl/mythrenderopengl.cpp @@ -113,9 +113,6 @@ MythRenderOpenGL* MythRenderOpenGL::Create(QWidget *Widget) format.setRenderableType(QSurfaceFormat::OpenGLES); } - // KdW test - format.setRenderableType(QSurfaceFormat::OpenGL); - if (VERBOSE_LEVEL_CHECK(VB_GPU, LOG_INFO)) format.setOption(QSurfaceFormat::DebugContext); @@ -544,12 +541,12 @@ void MythRenderOpenGL::SetWidget(QWidget *Widget) return; } -// #ifdef Q_OS_ANDROID // KdW test +#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 +#endif #ifdef USING_QTWEBENGINE auto * globalcontext = QOpenGLContext::globalShareContext();