mirror of https://github.com/mgba-emu/mgba.git
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);
|
setAttribute(Qt::WA_NativeWindow);
|
||||||
window()->windowHandle()->setFormat(format);
|
window()->windowHandle()->setFormat(format);
|
||||||
|
windowHandle()->setSurfaceType(QSurface::OpenGLSurface);
|
||||||
windowHandle()->create();
|
windowHandle()->create();
|
||||||
|
|
||||||
#ifdef USE_SHARE_WIDGET
|
#ifdef USE_SHARE_WIDGET
|
||||||
|
|
Loading…
Reference in New Issue