diff options
author | Lorn Potter <lorn.potter@gmail.com> | 2017-12-19 14:53:37 +1000 |
---|---|---|
committer | Lorn Potter <lorn.potter@gmail.com> | 2018-01-17 22:22:16 +0000 |
commit | 4d8237fc695350054980137e0a50cfc6f0f88d7d (patch) | |
tree | a0f99921b44d03706d9e2f497632440b3e675eeb /src/quick/scenegraph/util | |
parent | 62d07125620e787e7461edc5cfd4aa4287f26847 (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/util')
-rw-r--r-- | src/quick/scenegraph/util/qsgdefaultpainternode_p.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/quick/scenegraph/util/qsgdefaultpainternode_p.h b/src/quick/scenegraph/util/qsgdefaultpainternode_p.h index 084fc1e004..af265c0ec2 100644 --- a/src/quick/scenegraph/util/qsgdefaultpainternode_p.h +++ b/src/quick/scenegraph/util/qsgdefaultpainternode_p.h @@ -155,6 +155,7 @@ private: #endif qreal m_contentsScale; +#ifndef QT_NO_BITFIELDS bool m_dirtyContents : 1; bool m_opaquePainting : 1; bool m_linear_filtering : 1; @@ -166,6 +167,20 @@ private: bool m_dirtyGeometry : 1; bool m_dirtyRenderTarget : 1; bool m_dirtyTexture : 1; +#else + bool m_dirtyContents = 1; + bool m_opaquePainting = 1; + bool m_linear_filtering = 1; + bool m_mipmapping = 1; + bool m_smoothPainting = 1; + bool m_extensionsChecked = 1; + bool m_multisamplingSupported = 1; + bool m_fastFBOResizing = 1; + bool m_dirtyGeometry = 1; + bool m_dirtyRenderTarget = 1; + bool m_dirtyTexture = 1; +#endif + }; QT_END_NAMESPACE |