From b7763c4cfab8df6ae9445f791442c14f1ae739ba Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Tue, 3 Dec 2013 14:55:40 +0100 Subject: Release GL resources of ShaderEffectSource while we still have GL. When a Window element is used, the QML window item is deleted before the ShaderEffectSource component and the deleteLater to delete the texture gets handled too late. We now register for the sceneGraphInvalidated signal and release resources synchronously while shutting down. Task-number: QTBUG-35294 Change-Id: Id83b669ddc16723551e5612264ccbad6d3a9bbcb Reviewed-by: Laszlo Agocs Reviewed-by: J-P Nurmi --- src/quick/items/qquickshadereffectsource_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/quick/items/qquickshadereffectsource_p.h') diff --git a/src/quick/items/qquickshadereffectsource_p.h b/src/quick/items/qquickshadereffectsource_p.h index 6218775700..efa963fe64 100644 --- a/src/quick/items/qquickshadereffectsource_p.h +++ b/src/quick/items/qquickshadereffectsource_p.h @@ -124,6 +124,7 @@ Q_SIGNALS: public Q_SLOTS: void markDirtyTexture(); + void invalidated(); private: void grab(); -- cgit v1.2.3