Qt: Force surface type to OpenGL in DisplayGL

This commit is contained in:
Vicki Pfau 2023-08-18 21:44:46 -07:00
parent 17dbdcf57c
commit 613ce0286a
1 changed files with 1 additions and 0 deletions

View File

@ -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