Skip to content

Commit 69c99d4

Browse files
eaglefloendrift
authored andcommitted
Qt: Explicitly request desktop OpenGL with LibGL
1 parent c30aaa8 commit 69c99d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/platform/qt/DisplayGL.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ void DisplayGL::startDrawing(std::shared_ptr<CoreController> controller) {
287287
bool DisplayGL::highestCompatible(QSurfaceFormat& format) {
288288
#if defined(BUILD_GLES2) || defined(BUILD_GLES3) || defined(USE_EPOXY)
289289
if (QOpenGLContext::openGLModuleType() == QOpenGLContext::LibGL) {
290+
format.setRenderableType(QSurfaceFormat::OpenGL);
290291
format.setVersion(3, 3);
291292
format.setProfile(QSurfaceFormat::CoreProfile);
292293
if (DisplayGL::supportsFormat(format)) {

0 commit comments

Comments
 (0)