Enforce texture cleanup to happen at the end of the sync phase.
authorGunnar Sletta <gunnar.sletta@jollamobile.com>
Wed, 22 Jan 2014 09:26:14 +0000 (10:26 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 22 Jan 2014 14:51:31 +0000 (15:51 +0100)
commit52a9d06bb028a16d9cf9be563a8ad1df09023439
tree4036a59dc99a7390afb4310ab584d489ee34d176
parentabc1cb32727a94ddac07020759c3c97382477cf9
Enforce texture cleanup to happen at the end of the sync phase.

This was ok for the threaded renderer, but for the single-threaded
renderers where the event loop was spinning we could run the risk
of scheduling a texture for deleteLater() and then cleaning it
up before we got around to the sync phase.

Task-number: QTBUG-35670
Change-Id: I92074294b427fd8ab2a1823ba79c7ac3b59094ec
Reviewed-by: Michael Brasser <michael.brasser@live.com>
src/quick/items/qquickwindow.cpp
src/quick/scenegraph/qsgcontext.cpp
src/quick/scenegraph/qsgcontext_p.h