Remove other remnants of OpenGL ES support (#6213)

* Remove other remnants of OpenGL ES support

* Force OpenGL surface format if possible
This commit is contained in:
Cacodemon345
2025-09-23 18:26:32 +06:00
committed by GitHub
parent 4f0cdcad0b
commit b1e1596e2b

View File

@@ -814,10 +814,7 @@ OpenGLRenderer::OpenGLRenderer(QWidget *parent)
format.setVersion(3, 2);
#endif
format.setProfile(QSurfaceFormat::OpenGLContextProfile::CoreProfile);
if (QOpenGLContext::openGLModuleType() == QOpenGLContext::LibGLES)
format.setRenderableType(QSurfaceFormat::OpenGLES);
format.setRenderableType(QSurfaceFormat::OpenGL);
format.setSwapInterval(video_vsync ? 1 : 0);
setFormat(format);