fart around

This commit is contained in:
Arisotura 2020-05-29 21:27:40 +02:00
parent d3dd7bd988
commit 9557e18b7c
1 changed files with 4 additions and 7 deletions

View File

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