mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
Fix crash if OpenGL version is lower than requirements
This commit is contained in:
@ -1386,10 +1386,13 @@ void MainWindow::createScreenPanel()
|
|||||||
if (!hasOGL)
|
if (!hasOGL)
|
||||||
delete panelGL;
|
delete panelGL;
|
||||||
|
|
||||||
panel = panelGL;
|
if (hasOGL)
|
||||||
panelGL->setMouseTracking(true);
|
{
|
||||||
mouseTimer = panelGL->setupMouseTimer();
|
panel = panelGL;
|
||||||
connect(mouseTimer, &QTimer::timeout, [=] { if (Config::MouseHide) panelGL->setCursor(Qt::BlankCursor);});
|
panelGL->setMouseTracking(true);
|
||||||
|
mouseTimer = panelGL->setupMouseTimer();
|
||||||
|
connect(mouseTimer, &QTimer::timeout, [=] { if (Config::MouseHide) panelGL->setCursor(Qt::BlankCursor);});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hasOGL)
|
if (!hasOGL)
|
||||||
|
Reference in New Issue
Block a user