From 60a42a266a093e8091b091883ae64f82c375d68b Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Tue, 5 Jul 2016 10:30:01 +0200 Subject: QSG: prevent in-struct padding This also shrinks the class by a tiny bit, because the second bool fits inside the padding that was added to the first bool. Change-Id: Ifb3f3f165c5e1666e2787118de5b5fb579a573b9 Reviewed-by: Laszlo Agocs --- src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp') diff --git a/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp b/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp index e4f9417574..d45a0ea75d 100644 --- a/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp +++ b/src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp @@ -2771,8 +2771,8 @@ struct RenderNodeState : public QSGRenderNode::RenderState const QMatrix4x4 *m_projectionMatrix; QRect m_scissorRect; - bool m_scissorEnabled; int m_stencilValue; + bool m_scissorEnabled; bool m_stencilEnabled; }; -- cgit v1.2.3