mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
better syntax to declare var indexB
This commit is contained in:
parent
6220b30517
commit
514542e8ad
1 changed files with 1 additions and 3 deletions
|
@ -112,10 +112,8 @@ ParticleRenderer.prototype.init = function ()
|
|||
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, indexBufferObject);
|
||||
var indexBuffer = indexDataBuffer.wordView;
|
||||
|
||||
var indexB;
|
||||
|
||||
// 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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue