Qt: Force surface type to OpenGL in DisplayGL
This commit is contained in:
parent
17dbdcf57c
commit
613ce0286a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user