mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-02 12:00:01 -06:00
we don't need a GLShim.
blarg. I don't understand this anymore.
This commit is contained in:
@ -268,7 +268,7 @@ void EmuThread::initOpenGL()
|
||||
QOpenGLContext* windowctx = mainWindow->getOGLContext();
|
||||
QSurfaceFormat format = windowctx->format();
|
||||
|
||||
/*oglSurface = new QOffscreenSurface();
|
||||
oglSurface = new QOffscreenSurface();
|
||||
oglSurface->setFormat(format);
|
||||
oglSurface->create();
|
||||
if (!oglSurface->isValid())
|
||||
@ -277,8 +277,7 @@ void EmuThread::initOpenGL()
|
||||
printf("oglSurface shat itself :(\n");
|
||||
delete oglSurface;
|
||||
return;
|
||||
}*/
|
||||
oglSurface = new GLShim(format);
|
||||
}
|
||||
|
||||
oglContext = new QOpenGLContext();//oglSurface);
|
||||
oglContext->setFormat(oglSurface->format());
|
||||
@ -958,19 +957,6 @@ void ScreenPanelGL::onScreenLayoutChanged()
|
||||
}
|
||||
|
||||
|
||||
GLShim::GLShim(QSurfaceFormat& format) : QWindow()
|
||||
{
|
||||
setSurfaceType(QSurface::OpenGLSurface);
|
||||
setFormat(format);
|
||||
create();
|
||||
hide();
|
||||
}
|
||||
|
||||
GLShim::~GLShim()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
|
||||
{
|
||||
setWindowTitle("melonDS " MELONDS_VERSION);
|
||||
|
Reference in New Issue
Block a user