aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgrenderloop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/scenegraph/qsgrenderloop.cpp')
-rw-r--r--src/quick/scenegraph/qsgrenderloop.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgrenderloop.cpp b/src/quick/scenegraph/qsgrenderloop.cpp
index 8130272295..a55b7b4ad9 100644
--- a/src/quick/scenegraph/qsgrenderloop.cpp
+++ b/src/quick/scenegraph/qsgrenderloop.cpp
@@ -207,6 +207,7 @@ QSGRenderLoop *QSGRenderLoop::instance()
if (QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::ThreadedOpenGL))
loopType = ThreadedRenderLoop;
#endif
+
if (qmlNoThreadedRenderer())
loopType = BasicRenderLoop;
else if (qmlForceThreadedRenderer())
@@ -469,6 +470,9 @@ void QSGGuiThreadRenderLoop::renderWindow(QQuickWindow *window)
// Might have been set during syncSceneGraph()
if (data.updatePending)
maybeUpdate(window);
+#ifdef Q_OS_HTML5
+ QCoreApplication::processEvents(QEventLoop::EventLoopExec);
+#endif
}
void QSGGuiThreadRenderLoop::exposureChanged(QQuickWindow *window)