diff options
author | Fabian Bumberger <fbumberger@rim.com> | 2013-01-25 16:47:34 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-26 22:07:39 +0100 |
commit | 7cbfd6b3d26df37d06b54ecc873acb63dfa945e8 (patch) | |
tree | 09c045412f152c9f064f436dd7fd2d0c63a1f900 /src/particles/qquickimageparticle.cpp | |
parent | d2491c6e2445f672ac97420d8aa03bd235aad825 (diff) |
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 <aalpert@rim.com>
Diffstat (limited to 'src/particles/qquickimageparticle.cpp')
-rw-r--r-- | src/particles/qquickimageparticle.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/particles/qquickimageparticle.cpp b/src/particles/qquickimageparticle.cpp index bb6edb26a5..e0572ef424 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" |