Fix particle system on windows
authorAlan Alpert <alan.alpert@nokia.com>
Tue, 28 Feb 2012 07:09:14 +0000 (17:09 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 29 Feb 2012 07:01:30 +0000 (08:01 +0100)
To preserve correctness, just use a non-point-sprite performance level
on windows until QTBUG-24540 is resolved.

Change-Id: I7608fbe21233534fb22c9d352aafae759e68c143
Reviewed-by: Martin Jones <martin.jones@nokia.com>

src/quick/particles/qquickimageparticle.cpp

index 83687ae..562a6c5 100644 (file)
@@ -1342,6 +1342,10 @@ void QQuickImageParticle::finishBuildParticleNodes()
             }
         }
     }
+#ifdef Q_OS_WIN
+    if (perfLevel < Deformable) //QTBUG-24540 , point sprite 'extension' isn't working on windows.
+        perfLevel = Deformable;
+#endif
 
     if (perfLevel >= Colored  && !m_color.isValid())
         m_color = QColor(Qt::white);//Hidden default, but different from unset