aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/coreapi
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/coreapi
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/coreapi')
-rw-r--r--src/quick/scenegraph/coreapi/qsgrenderer_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgrenderer_p.h b/src/quick/scenegraph/coreapi/qsgrenderer_p.h
index b890728fd8..ae8d9f75d2 100644
--- a/src/quick/scenegraph/coreapi/qsgrenderer_p.h
+++ b/src/quick/scenegraph/coreapi/qsgrenderer_p.h
@@ -123,9 +123,15 @@ private:
const QSGBindable *m_bindable;
+#ifndef QT_NO_BITFIELDS
uint m_changed_emitted : 1;
uint m_is_rendering : 1;
uint m_is_preprocessing : 1;
+#else
+ uint m_changed_emitted = 1;
+ uint m_is_rendering = 1;
+ uint m_is_preprocessing = 1;
+#endif
};
class Q_QUICK_PRIVATE_EXPORT QSGBindable