aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgthreadedrenderloop_p.h
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@gmail.com>2017-12-19 14:53:37 +1000
committerLorn Potter <lorn.potter@gmail.com>2018-01-17 22:22:16 +0000
commit4d8237fc695350054980137e0a50cfc6f0f88d7d (patch)
treea0f99921b44d03706d9e2f497632440b3e675eeb /src/quick/scenegraph/qsgthreadedrenderloop_p.h
parent62d07125620e787e7461edc5cfd4aa4287f26847 (diff)
wasm: bitfield packing fix
emscripten seems to have issues with them, acting as if they are const, and cannot be changed. Change-Id: I1b86580ca80dab08a0efbd25fbf5167625a704f9 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/quick/scenegraph/qsgthreadedrenderloop_p.h')
-rw-r--r--src/quick/scenegraph/qsgthreadedrenderloop_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgthreadedrenderloop_p.h b/src/quick/scenegraph/qsgthreadedrenderloop_p.h
index 32bfcb7148..7568047fd2 100644
--- a/src/quick/scenegraph/qsgthreadedrenderloop_p.h
+++ b/src/quick/scenegraph/qsgthreadedrenderloop_p.h
@@ -101,8 +101,13 @@ private:
QQuickWindow *window;
QSGRenderThread *thread;
QSurfaceFormat actualWindowFormat;
+#ifndef QT_NO_BITFIELDS
uint updateDuringSync : 1;
uint forceRenderPass : 1;
+#else
+ uint updateDuringSync = 1;
+ uint forceRenderPass = 1;
+#endif
};
friend class QSGRenderThread;