diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-09-04 14:08:41 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-05 13:28:59 +0200 |
commit | 21a08ccde3c7c2dc69e06b714549585bbf39b5c3 (patch) | |
tree | 174852af4daec800223d7345102b9f5a26f4d8b5 /src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h | |
parent | 936e3f5098de389d65308aeb3c918d77647d46ab (diff) |
Fix rendering errors in Qt Quick Controls gallery
First, when doing a partial rebuild, we need to mark
all elements for orphaning, not just those without a batch,
as the renderlist should at all times contain everything
that is rendered on screen.
Second, we had a small bug with material changes where we
would overwrite the rebuild state instead of adding to it.
This led to the render lists not being rebuilt from scratch
in some scenarios.
Third, after the shadow nodes rewrite, we didn't mark
for a full rebuild when clips were added.
Change-Id: I6707ebfa2908fcedd7fb636fb25b844be15fdea1
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h')
-rw-r--r-- | src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h b/src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h index d47fcbd8d3..6f7694deac 100644 --- a/src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h +++ b/src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h @@ -205,7 +205,7 @@ struct RenderNodeElement : public Element { }; struct BatchRootInfo { - BatchRootInfo() : parentRoot(0), availableOrders(0) { } + BatchRootInfo() : parentRoot(0), lastOrder(-1), firstOrder(-1), availableOrders(0) { } QSet<Node *> subRoots; Node *parentRoot; int lastOrder; |