diff options
author | Christian Strømme <christian.stromme@qt.io> | 2023-12-13 14:36:59 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-12-16 01:39:58 +0000 |
commit | 60e49dfbe3cf8276aabfcf7bf00dc532dea78baf (patch) | |
tree | 2e5ce91c4427338c795161a7bc8ae756f19a8ad3 /src/qml/doc | |
parent | 58a40b1ab2f0607259e604b752d2a9fa9149814d (diff) |
Make sure updateCurrentTime() is done on with a valid ShaderEffect
The target might change several times, or worse have been destroyed,
while updates are still queued, and since the effect pointer isn't
updated until the postSync() call, the effect pointer can get out of
sync leaving it pointing to the wrong object, or a destroyed one.
To avoid operating on an destroyed or old handle, check if the current
effect is valid and matches the target before applying the uniform
values in updateCurrentTime().
Pick-to: 6.7 6.6 6.5 6.2
Fixes: QTBUG-119363
Change-Id: I5172ccf9405c1d789f197a0cf8cec4c749bd7d28
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/qml/doc')
0 files changed, 0 insertions, 0 deletions