diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2012-03-15 16:14:45 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-19 17:09:14 +0100 |
commit | 3bf01de85d943432d66b5fa8048275817fd20020 (patch) | |
tree | a53b3b27e4a29341a80d7fd905cf30dac1aff9c2 /src/quick/particles/qquickcustomparticle_p.h | |
parent | cbb53d463cff9b8ea7cf42e9e8782a7974c4fd1b (diff) |
Clean up dangling pointers in the particle system
When the scenegraph has been invalidated all node
pointers have been deleted. In the image particle case
the material is managed by the nodes and must also
be reset.
Change-Id: I867f0d36a3ea281a58c21f04c937b16b042ef373
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'src/quick/particles/qquickcustomparticle_p.h')
-rw-r--r-- | src/quick/particles/qquickcustomparticle_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/particles/qquickcustomparticle_p.h b/src/quick/particles/qquickcustomparticle_p.h index 29f3d19657..e04ac704d0 100644 --- a/src/quick/particles/qquickcustomparticle_p.h +++ b/src/quick/particles/qquickcustomparticle_p.h @@ -93,6 +93,8 @@ protected: QQuickShaderEffectNode *buildCustomNodes(); void performPendingResize(); + void sceneGraphInvalidated(); + private: void buildData(); |