compare operation fixed

This commit is contained in:
Uwe Rathmann 2022-09-23 12:39:34 +02:00
parent 36e84e53b6
commit 9cb3bc6ab9

View File

@ -230,12 +230,12 @@ int Material::compare( const QSGMaterial* other ) const
{ {
auto material = static_cast< const Material* >( other ); auto material = static_cast< const Material* >( other );
if ( material->m_color != m_color if ( ( material->m_color == m_color )
|| material->m_aspect != m_aspect && ( material->m_aspect == m_aspect )
|| !qFuzzyCompare(material->m_blurExtent, m_blurExtent) && qFuzzyCompare(material->m_blurExtent, m_blurExtent)
|| !qFuzzyCompare(material->m_radius, m_radius) ) && qFuzzyCompare(material->m_radius, m_radius) )
{ {
return 1; return 0;
} }
return QSGMaterial::compare( other ); return QSGMaterial::compare( other );