Qt: Fix flickering when frame-advancing on Windows

This commit is contained in:
Vicki Pfau 2022-10-11 20:27:49 -07:00
parent 16bcdd0fc3
commit 959e4bf1e6
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ void DisplayGL::pauseDrawing() {
if (m_hasStarted) {
m_isDrawing = false;
QMetaObject::invokeMethod(m_painter.get(), "pause", Qt::BlockingQueuedConnection);
if (QGuiApplication::platformName() != "xcb") {
if (!shouldDisableUpdates()) {
setUpdatesEnabled(true);
}
}