diff --git a/examples/iotdashboard/nodes/BoxShadowNode.cpp b/examples/iotdashboard/nodes/BoxShadowNode.cpp index b7a0433f..dee3da36 100644 --- a/examples/iotdashboard/nodes/BoxShadowNode.cpp +++ b/examples/iotdashboard/nodes/BoxShadowNode.cpp @@ -91,8 +91,7 @@ namespace if ( state.isOpacityDirty() ) p->setUniformValue( m_opacityId, state.opacity() ); - if ( oldMaterial == nullptr || newMaterial->compare( oldMaterial ) != 0 - || state.isCachedMaterialDataDirty( )) + if ( oldMaterial == nullptr || newMaterial->compare( oldMaterial ) != 0 ) { auto material = static_cast< const Material* >( newMaterial );