aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFabian Bumberger <fbumberger@rim.com>2013-01-16 15:13:48 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-16 19:43:35 +0100
commit20f5919a63e36fe43a9d8107992badcd8cf8c915 (patch)
tree2c34f442a015abe4c5e215a85bc96374e707b64b /src
parentd89f1dbe16b80b5e375f213c45b6130443f61a48 (diff)
Remove workaround for particle shader on Blackberry
Change-Id: Ibcf4b55323046fee4a18b4c5bf51c78ed8832a63 Reviewed-by: Alan Alpert <aalpert@rim.com>
Diffstat (limited to 'src')
-rw-r--r--src/particles/qquickcustomparticle.cpp5
-rw-r--r--src/particles/qquickimageparticle.cpp5
2 files changed, 0 insertions, 10 deletions
diff --git a/src/particles/qquickcustomparticle.cpp b/src/particles/qquickcustomparticle.cpp
index 67614a92d6..4bcb86a51f 100644
--- a/src/particles/qquickcustomparticle.cpp
+++ b/src/particles/qquickcustomparticle.cpp
@@ -60,12 +60,7 @@ static const char qt_particles_template_vertex_code[] =
" highp float size = qt_ParticleData.z;\n"
" highp float endSize = qt_ParticleData.w;\n"
" highp float t = (qt_Timestamp - qt_ParticleData.x) / qt_ParticleData.y;\n"
-#if !defined(Q_OS_BLACKBERRY)
" highp float currentSize = mix(size, endSize, t * t);\n"
-#else
- " highp float mixWorkaround = (endSize - size) * t * t;\n"
- " highp float currentSize = mixWorkaround + size;\n"
-#endif
" if (t < 0. || t > 1.)\n"
" currentSize = 0.;\n"
" highp vec2 pos = qt_ParticlePos\n"
diff --git a/src/particles/qquickimageparticle.cpp b/src/particles/qquickimageparticle.cpp
index 050bfe1a68..bb6edb26a5 100644
--- a/src/particles/qquickimageparticle.cpp
+++ b/src/particles/qquickimageparticle.cpp
@@ -127,12 +127,7 @@ static const char vertexShaderCode[] =
"#elif defined(DEFORM)\n"
" fTex = vPosTex.zw;\n"
"#endif\n"
-#if !defined(Q_OS_BLACKBERRY)
" highp float currentSize = mix(vData.z, vData.w, t * t);\n"
-#else
- " highp float mixWorkaround = (vData.w - vData.z) * t * t;\n"
- " highp float currentSize = mixWorkaround + vData.z;\n"
-#endif
" lowp float fade = 1.;\n"
" highp float fadeIn = min(t * 10., 1.);\n"
" highp float fadeOut = 1. - clamp((t - 0.75) * 4.,0., 1.);\n"