diff options
author | Thomas Senyk <thomas.senyk@qt.io> | 2022-12-15 18:01:12 +0100 |
---|---|---|
committer | Thomas Senyk <thomas.senyk@qt.io> | 2023-02-01 09:06:16 +0100 |
commit | b899dff5d496e8bebb6bb81e37951d03f8469f63 (patch) | |
tree | a67e25b4c52cb3809fe7fb70d19632e1e0aa5d1b /examples/qml/tutorials/extending-qml | |
parent | 185b0d5f215df0254b38ac8a7dfb72c20ce9bc1e (diff) |
Fix QQuickImageParticle in case of QRhi re-create
With this patch QQuickImageParticle will now properly re-query
the m_rhi member the next time updatePaintNode() is called
Additionally a new (override)
QQuickImageParticle::invalidateSceneGraph()
will call reset() so that potential sub-nodes (e.g. SpriteParticle)
will also be re-created
Last but not least: QQuickSpriteEngine::startAssemblingImage()
was missing to reset it's sprites container
(without that the sprites would pile up and eventually
fail with "Too many animations" error)
Pick-to: 6.5 6.4 6.2
Change-Id: I172fd23ddfac475542aabc6cc17d8fee74f728b2
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'examples/qml/tutorials/extending-qml')
0 files changed, 0 insertions, 0 deletions