From: Gunnar Sletta Date: Thu, 11 Apr 2013 12:20:57 +0000 (+0200) Subject: Use triangle strips for particles on Mac OS X, ATI cards. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=9dcdae312ed547dec99adf2ccec03f4f94992c64;p=konrad%2Fqtdeclarative.git Use triangle strips for particles on Mac OS X, ATI cards. Change-Id: Ie831fc6f8f8cdd891c15dc028383b191662416fc Reviewed-by: Alan Alpert --- diff --git a/src/particles/qquickimageparticle.cpp b/src/particles/qquickimageparticle.cpp index e0572ef..d571641 100644 --- a/src/particles/qquickimageparticle.cpp +++ b/src/particles/qquickimageparticle.cpp @@ -1363,6 +1363,15 @@ void QQuickImageParticle::finishBuildParticleNodes() perfLevel = Deformable; #endif +#ifdef Q_OS_MAC + // Mac OS X 10.8.3 introduced a bug in the AMD drivers, for at least the 2011 macbook pros, + // causing point sprites who read gl_PointCoord in the frag shader to come out as + // green-red blobs. + if (perfLevel < Deformable && strstr((char *) glGetString(GL_VENDOR), "ATI")) { + perfLevel = Deformable; + } +#endif + if (perfLevel >= Colored && !m_color.isValid()) m_color = QColor(Qt::white);//Hidden default, but different from unset