summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2013-05-08 15:05:33 -0700
committerStephen Hines <srhines@google.com>2013-05-08 15:05:33 -0700
commit461c46ca306a1c2d5c068211adffd94d39a89f0f (patch)
tree2ecd5ddffa1f5929b2d7c3037b57669cfc158c82
parent7d0b0af22507bb0eec5a760ddc2b2b4d0469fa11 (diff)
downloadandroid_packages_wallpapers_PhaseBeam-461c46ca306a1c2d5c068211adffd94d39a89f0f.tar.gz
android_packages_wallpapers_PhaseBeam-461c46ca306a1c2d5c068211adffd94d39a89f0f.tar.bz2
android_packages_wallpapers_PhaseBeam-461c46ca306a1c2d5c068211adffd94d39a89f0f.zip
Revert "WAR for compiler crash on PhaseBeam."
This reverts commit 32d40d0d4d4c61782d6cb7bc6f2d18018bd8e17a.
-rw-r--r--src/com/android/phasebeam/phasebeam.rs5
1 files changed, 3 insertions, 2 deletions
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 @@ void positionParticles() {
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 @@ void positionParticles() {
}
particle->position.z = z;
particle->offsetX = 0;
+
+ particle++;
}
Particle_t* beam = beamParticles;