Qt: Only disable DisplayGL updates on Windows

This commit is contained in:
Vicki Pfau 2022-06-06 17:21:32 -07:00
parent ae0c5e91aa
commit 7b8ba05f88
1 changed files with 4 additions and 2 deletions

View File

@ -205,7 +205,9 @@ void DisplayGL::startDrawing(std::shared_ptr<CoreController> controller) {
CoreController::Interrupter interrupter(controller);
QMetaObject::invokeMethod(m_painter.get(), "start");
if (!m_gl) {
setUpdatesEnabled(false);
if (QGuiApplication::platformName() == "windows") {
setUpdatesEnabled(false);
}
} else {
show();
}
@ -290,7 +292,7 @@ void DisplayGL::unpauseDrawing() {
if (m_hasStarted) {
m_isDrawing = true;
QMetaObject::invokeMethod(m_painter.get(), "unpause", Qt::BlockingQueuedConnection);
if (!m_gl) {
if (!m_gl && QGuiApplication::platformName() == "windows") {
setUpdatesEnabled(false);
}
}