Fix crash if OpenGL version is lower than requirements

This commit is contained in:
WaluigiWare64 2021-01-24 15:44:05 +00:00
parent 9994d3a644
commit 536902d610

View File

@ -1386,11 +1386,14 @@ void MainWindow::createScreenPanel()
if (!hasOGL)
delete panelGL;
if (hasOGL)
{
panel = panelGL;
panelGL->setMouseTracking(true);
mouseTimer = panelGL->setupMouseTimer();
connect(mouseTimer, &QTimer::timeout, [=] { if (Config::MouseHide) panelGL->setCursor(Qt::BlankCursor);});
}
}
if (!hasOGL)
{