diff --git a/v3/src/renderer/webgl/renderers/ParticleRenderer.js b/v3/src/renderer/webgl/renderers/ParticleRenderer.js index b6dd0cdd6..a9f90ae32 100644 --- a/v3/src/renderer/webgl/renderers/ParticleRenderer.js +++ b/v3/src/renderer/webgl/renderers/ParticleRenderer.js @@ -113,7 +113,7 @@ ParticleRenderer.prototype.init = function () var indexBuffer = indexDataBuffer.wordView; // Populate the index buffer only once - for (var indexA = indexB = 0; + for (var indexA = 0, indexB = 0; indexA < ParticleRenderer.MAX_PARTICLES * ParticleRenderer.PARTICLE_INDEX_COUNT; indexA += ParticleRenderer.PARTICLE_INDEX_COUNT, indexB += ParticleRenderer.PARTICLE_VERTEX_COUNT) {