Qt: Fix GL display not updating while paused
Vicki Pfau vi@endrift.com
Thu, 04 Jul 2019 14:13:27 -0700
2 files changed,
1 insertions(+),
4 deletions(-)
M
src/platform/qt/DisplayGL.cpp
→
src/platform/qt/DisplayGL.cpp
@@ -64,7 +64,6 @@ m_gl->create();
} m_painter = new PainterGL(windowHandle(), m_gl, forceVersion); - setUpdatesEnabled(false); // Prevent paint events, which can cause race conditions } DisplayGL::~DisplayGL() {@@ -475,8 +474,6 @@ m_needsUnlock = false;
} if (!m_queue.isEmpty()) { QMetaObject::invokeMethod(this, "draw", Qt::QueuedConnection); - } else { - m_swapTimer.start(); } }
M
src/platform/qt/DisplayGL.h
→
src/platform/qt/DisplayGL.h
@@ -60,7 +60,7 @@ void clearShaders() override;
void resizeContext() override; protected: - virtual void paintEvent(QPaintEvent*) override {} + virtual void paintEvent(QPaintEvent*) override { forceDraw(); } virtual void resizeEvent(QResizeEvent*) override; private: