From 613ce0286afbf3d2c19a20ff9dc3e71f690e8455 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 18 Aug 2023 21:44:46 -0700 Subject: [PATCH] Qt: Force surface type to OpenGL in DisplayGL --- src/platform/qt/DisplayGL.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/qt/DisplayGL.cpp b/src/platform/qt/DisplayGL.cpp index 4b3da6b90..eaae3f63c 100644 --- a/src/platform/qt/DisplayGL.cpp +++ b/src/platform/qt/DisplayGL.cpp @@ -185,6 +185,7 @@ DisplayGL::DisplayGL(const QSurfaceFormat& format, QWidget* parent) { setAttribute(Qt::WA_NativeWindow); window()->windowHandle()->setFormat(format); + windowHandle()->setSurfaceType(QSurface::OpenGLSurface); windowHandle()->create(); #ifdef USE_SHARE_WIDGET