mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 21:37:42 -07:00
Fix crash if OpenGL version is lower than requirements
This commit is contained in:
parent
9994d3a644
commit
536902d610
@ -1386,11 +1386,14 @@ void MainWindow::createScreenPanel()
|
|||||||
if (!hasOGL)
|
if (!hasOGL)
|
||||||
delete panelGL;
|
delete panelGL;
|
||||||
|
|
||||||
|
if (hasOGL)
|
||||||
|
{
|
||||||
panel = panelGL;
|
panel = panelGL;
|
||||||
panelGL->setMouseTracking(true);
|
panelGL->setMouseTracking(true);
|
||||||
mouseTimer = panelGL->setupMouseTimer();
|
mouseTimer = panelGL->setupMouseTimer();
|
||||||
connect(mouseTimer, &QTimer::timeout, [=] { if (Config::MouseHide) panelGL->setCursor(Qt::BlankCursor);});
|
connect(mouseTimer, &QTimer::timeout, [=] { if (Config::MouseHide) panelGL->setCursor(Qt::BlankCursor);});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!hasOGL)
|
if (!hasOGL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user