Skip to content

Commit

Permalink
Revert development patch for Qt issue
Browse files Browse the repository at this point in the history
Revert the development for the Qt issue that was accidentally
commited as part of commit 49be1f0
  • Loading branch information
kmdewaal committed Jan 12, 2025
1 parent 49be1f0 commit 69d08b0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mythtv/libs/libmythui/opengl/mythrenderopengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 69d08b0

Please sign in to comment.