Revert "WAR for compiler crash on PhaseBeam."
This reverts commit 32d40d0d4d4c61782d6cb7bc6f2d18018bd8e17a.
diff --git a/src/com/android/phasebeam/phasebeam.rs b/src/com/android/phasebeam/phasebeam.rs
index 26b2910..037f303 100644
--- a/src/com/android/phasebeam/phasebeam.rs
+++ b/src/com/android/phasebeam/phasebeam.rs
@@ -63,11 +63,10 @@
halfScreenHeight = screenHeight/2.0f;
quarterScreenWidth = screenWidth/4.0f;
quarterScreenHeight = screenHeight/4.0f;
- rs_allocation aParticles = rsGetAllocation(dotParticles);
+ Particle_t* particle = dotParticles;
numDotParticles = rsAllocationGetDimX(rsGetAllocation(dotParticles));
numVertColors = rsAllocationGetDimX(rsGetAllocation(vertexColors));
for(int i=0; i<numDotParticles; i++) {
- Particle_t* particle = (Particle_t *) rsGetElementAt(aParticles, i);
particle->position.x = rsRand(0.0f, 3.0f);
particle->position.y = rsRand(-1.25f, 1.25f);
@@ -86,6 +85,8 @@
}
particle->position.z = z;
particle->offsetX = 0;
+
+ particle++;
}
Particle_t* beam = beamParticles;