Qt 5.6 incompatibility fixed

This commit is contained in:
Uwe Rathmann 2021-12-06 19:55:19 +01:00
parent 985fcf1e2d
commit f69dedcb13

View File

@ -91,8 +91,7 @@ namespace
if ( state.isOpacityDirty() ) if ( state.isOpacityDirty() )
p->setUniformValue( m_opacityId, state.opacity() ); p->setUniformValue( m_opacityId, state.opacity() );
if ( oldMaterial == nullptr || newMaterial->compare( oldMaterial ) != 0 if ( oldMaterial == nullptr || newMaterial->compare( oldMaterial ) != 0 )
|| state.isCachedMaterialDataDirty( ))
{ {
auto material = static_cast< const Material* >( newMaterial ); auto material = static_cast< const Material* >( newMaterial );