diff options
author | Arisotura <thetotalworm@gmail.com> | 2020-05-29 21:27:40 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2020-05-29 21:27:40 +0200 |
commit | 9557e18b7cd559679552535e4362115b6d249ab3 (patch) | |
tree | ffe73cc04c68481d07f63f931d84d4224dd4d591 /src/frontend/qt_sdl | |
parent | d3dd7bd9880bfd6a5b65f263272742105620ccb3 (diff) |
fart around
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r-- | src/frontend/qt_sdl/main.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index 5870d8a..2aaac96 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -273,6 +273,8 @@ void EmuThread::initOpenGL() QOpenGLContext* windowctx = mainWindow->getOGLContext(); QSurfaceFormat format = windowctx->format(); + format.setSwapInterval(0); + oglSurface = new QOffscreenSurface(); oglSurface->setFormat(format); oglSurface->create(); @@ -791,14 +793,9 @@ void ScreenPanelNative::onScreenLayoutChanged() ScreenPanelGL::ScreenPanelGL(QWidget* parent) : QOpenGLWidget(parent) { - QSurfaceFormat format; - format.setDepthBufferSize(24); - format.setStencilBufferSize(8); - format.setVersion(3, 2); - format.setProfile(QSurfaceFormat::CoreProfile); - setFormat(format); - touching = false; + + curVSync = -1; } ScreenPanelGL::~ScreenPanelGL() |