aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickopenglshadereffectnode.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-05-27 16:32:00 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-05-28 11:07:11 +0000
commit5af16fb4dfa39ead82240f5ffbc004634f3c288f (patch)
tree107059658e51419a4fbb3fd97c9067b9f9402e53 /src/quick/items/qquickopenglshadereffectnode.cpp
parentf330b6a667babea9491872b1dcd68816a6c095ba (diff)
Fix mistakes in 9b36512b9453f429644b0c388d381f7a2fc0f825
Undo change to signature of textureProviderDestroyed, and reinstate test for disconnected item having a window, and instead ensure we are destroyed earlier while the item is still valid. Fixes: QTBUG-76055 Change-Id: I0c6c13cd44d3364984e0245b3b048f4aa183b43a Reviewed-by: Daniel Smith <Daniel.Smith@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/quick/items/qquickopenglshadereffectnode.cpp')
-rw-r--r--src/quick/items/qquickopenglshadereffectnode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickopenglshadereffectnode.cpp b/src/quick/items/qquickopenglshadereffectnode.cpp
index f96ebebcd6..3ccd2a76f7 100644
--- a/src/quick/items/qquickopenglshadereffectnode.cpp
+++ b/src/quick/items/qquickopenglshadereffectnode.cpp
@@ -505,7 +505,7 @@ void QQuickOpenGLShaderEffectNode::markDirtyTexture()
Q_EMIT dirtyTexture();
}
-void QQuickOpenGLShaderEffectNode::textureProviderDestroyed(const QObject *object)
+void QQuickOpenGLShaderEffectNode::textureProviderDestroyed(QObject *object)
{
Q_ASSERT(material());
static_cast<QQuickOpenGLShaderEffectMaterial *>(material())->invalidateTextureProvider(object);