diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2017-11-17 09:05:58 +0100 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2018-01-10 10:04:39 +0000 |
commit | 02d01a68971747f01a270226f6474190736939cf (patch) | |
tree | b54f06580e8f960bb8518fe5f06b0e633846f5c6 /src/quick3d/imports/scene3d/scene3dsgmaterial.cpp | |
parent | c3b0c00041817bdb96aa33ee214b13c1b1ac9617 (diff) |
Scene3DRenderer: ensure window pointer stays the same while renderingv5.9.4
It appears that the pointer value for the window could in some cases be
updated meanwhile we were rendering, which resulted in random crashes.
We now save the window pointer to a member variable on startup or whenever the
windowChanged signal is fired and use a mutex to ensure the pointer won't
change while we are rendering.
This also covers the case where the item is destroyed but the cross-thread
signals are not received before rendering happens.
Task-number: QTBUG-63897
Task-number: QTBUG-65407
Change-Id: I5f2797e2210b532f9086ed186959fce27ea9f514
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/quick3d/imports/scene3d/scene3dsgmaterial.cpp')
0 files changed, 0 insertions, 0 deletions