Introduce a workaround for a GLSL bug on BB10
authorFabian Bumberger <fbumberger@rim.com>
Fri, 25 Jan 2013 15:47:34 +0000 (16:47 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 26 Jan 2013 21:07:39 +0000 (22:07 +0100)
When using the sizeTable property of the QQuickImageParticles, the vertex shader is not compiling.
This is a workaround for a compiler bug on BB10.

Change-Id: I32d5e92bc300304cb856d97b1310f607df1e48be
Reviewed-by: Alan Alpert <aalpert@rim.com>

src/particles/qquickimageparticle.cpp

index bb6edb2..e0572ef 100644 (file)
@@ -128,7 +128,11 @@ static const char vertexShaderCode[] =
     "        fTex = vPosTex.zw;\n"
     "#endif\n"
     "        highp float currentSize = mix(vData.z, vData.w, t * t);\n"
+#if defined (Q_OS_BLACKBERRY)
+    "        highp float fade = 1.;\n"
+#else
     "        lowp float fade = 1.;\n"
+#endif
     "        highp float fadeIn = min(t * 10., 1.);\n"
     "        highp float fadeOut = 1. - clamp((t - 0.75) * 4.,0., 1.);\n"
     "\n"