From 9dcdae312ed547dec99adf2ccec03f4f94992c64 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Thu, 11 Apr 2013 14:20:57 +0200 Subject: Use triangle strips for particles on Mac OS X, ATI cards. Change-Id: Ie831fc6f8f8cdd891c15dc028383b191662416fc Reviewed-by: Alan Alpert --- src/particles/qquickimageparticle.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/particles') diff --git a/src/particles/qquickimageparticle.cpp b/src/particles/qquickimageparticle.cpp index e0572ef424..d571641bad 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 -- cgit v1.2.3