From: Fabian Bumberger Date: Fri, 25 Jan 2013 15:47:34 +0000 (+0100) Subject: Introduce a workaround for a GLSL bug on BB10 X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=7cbfd6b3d26df37d06b54ecc873acb63dfa945e8;p=konrad%2Fqtdeclarative.git Introduce a workaround for a GLSL bug on BB10 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 --- diff --git a/src/particles/qquickimageparticle.cpp b/src/particles/qquickimageparticle.cpp index bb6edb2..e0572ef 100644 --- a/src/particles/qquickimageparticle.cpp +++ b/src/particles/qquickimageparticle.cpp @@ -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"