mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 13:50:11 -06:00
fart around
This commit is contained in:
@ -273,6 +273,8 @@ void EmuThread::initOpenGL()
|
|||||||
QOpenGLContext* windowctx = mainWindow->getOGLContext();
|
QOpenGLContext* windowctx = mainWindow->getOGLContext();
|
||||||
QSurfaceFormat format = windowctx->format();
|
QSurfaceFormat format = windowctx->format();
|
||||||
|
|
||||||
|
format.setSwapInterval(0);
|
||||||
|
|
||||||
oglSurface = new QOffscreenSurface();
|
oglSurface = new QOffscreenSurface();
|
||||||
oglSurface->setFormat(format);
|
oglSurface->setFormat(format);
|
||||||
oglSurface->create();
|
oglSurface->create();
|
||||||
@ -791,14 +793,9 @@ void ScreenPanelNative::onScreenLayoutChanged()
|
|||||||
|
|
||||||
ScreenPanelGL::ScreenPanelGL(QWidget* parent) : QOpenGLWidget(parent)
|
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;
|
touching = false;
|
||||||
|
|
||||||
|
curVSync = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ScreenPanelGL::~ScreenPanelGL()
|
ScreenPanelGL::~ScreenPanelGL()
|
||||||
|
Reference in New Issue
Block a user