aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/particles/qsgcustomparticle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/particles/qsgcustomparticle.cpp')
-rw-r--r--src/declarative/particles/qsgcustomparticle.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/particles/qsgcustomparticle.cpp b/src/declarative/particles/qsgcustomparticle.cpp
index ae6c269962..2d86306dc2 100644
--- a/src/declarative/particles/qsgcustomparticle.cpp
+++ b/src/declarative/particles/qsgcustomparticle.cpp
@@ -411,10 +411,12 @@ void QSGCustomParticle::prepareNextFrame(){
QSGShaderEffectNode* QSGCustomParticle::buildCustomNodes()
{
+#ifdef QT_OPENGL_ES_2
if (m_count * 4 > 0xffff) {
- printf("CustomParticle: Too many particles... \n");//####Why is this here?
+ printf("CustomParticle: Too many particles... \n");
return 0;
}
+#endif
if (m_count <= 0) {
printf("CustomParticle: Too few particles... \n");