mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-02 20:09:41 -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)
|
||||
delete panelGL;
|
||||
|
||||
panel = panelGL;
|
||||
panelGL->setMouseTracking(true);
|
||||
mouseTimer = panelGL->setupMouseTimer();
|
||||
connect(mouseTimer, &QTimer::timeout, [=] { if (Config::MouseHide) panelGL->setCursor(Qt::BlankCursor);});
|
||||
if (hasOGL)
|
||||
{
|
||||
panel = panelGL;
|
||||
panelGL->setMouseTracking(true);
|
||||
mouseTimer = panelGL->setupMouseTimer();
|
||||
connect(mouseTimer, &QTimer::timeout, [=] { if (Config::MouseHide) panelGL->setCursor(Qt::BlankCursor);});
|
||||
}
|
||||
}
|
||||
|
||||
if (!hasOGL)
|
||||
|
Reference in New Issue
Block a user