qobject_cast will cause the object's virtual metaObject() function to
be called. Calling virtual functions in a destructor should be
avoided. (The qobject_cast fails, and the assert is triggered.)
Change-Id: I04a7604adb8884cd36731577303793c74c0a8673
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
void QQuickShaderEffectNode::textureProviderDestroyed(QObject *object)
{
- Q_ASSERT(qobject_cast<QSGTextureProvider *>(object));
m_material.invalidateTextureProvider(static_cast<QSGTextureProvider *>(object));
}