aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/particles/qsgimageparticle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/particles/qsgimageparticle.cpp')
-rw-r--r--src/declarative/particles/qsgimageparticle.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/particles/qsgimageparticle.cpp b/src/declarative/particles/qsgimageparticle.cpp
index 3b58bfc208..57461a414b 100644
--- a/src/declarative/particles/qsgimageparticle.cpp
+++ b/src/declarative/particles/qsgimageparticle.cpp
@@ -846,10 +846,12 @@ static QSGGeometry::AttributeSet SpriteParticle_AttributeSet =
QSGGeometryNode* QSGImageParticle::buildParticleNodes()
{
- if (m_count * 4 > 0xffff) {//TODO: Lift this limit for desktop?
+#ifdef QT_OPENGL_ES_2
+ if (m_count * 4 > 0xffff) {
printf("ImageParticle: Too many particles - maximum 16,000 per ImageParticle.\n");//ES 2 vertex count limit is ushort
return 0;
}
+#endif
if (count() <= 0)
return 0;