diff options
author | Stephen Hines <srhines@google.com> | 2013-03-25 14:16:48 -0700 |
---|---|---|
committer | The Android Automerger <android-build@android.com> | 2013-03-25 15:35:59 -0700 |
commit | 32d40d0d4d4c61782d6cb7bc6f2d18018bd8e17a (patch) | |
tree | f0fe30e58399652523b050e047053d2bcf2ac9c1 | |
parent | 33ab06cf6d352d8d8eb07da6ec7dcd58f2648897 (diff) | |
download | PhaseBeam-32d40d0d4d4c61782d6cb7bc6f2d18018bd8e17a.tar.gz |
WAR for compiler crash on PhaseBeam.android-4.3_r2.3android-4.3_r2.2android-4.3_r2.1android-4.3_r2android-4.3_r1.1android-4.3_r1android-4.3_r0.9.1android-4.3_r0.9jb-mr2.0-releasejb-mr2-release
Bug: 8338821
Change-Id: I31c0a6e98283a25c7f2afa5e9b7d256b2c2741c1
-rw-r--r-- | src/com/android/phasebeam/phasebeam.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/phasebeam/phasebeam.rs b/src/com/android/phasebeam/phasebeam.rs index 037f303..26b2910 100644 --- a/src/com/android/phasebeam/phasebeam.rs +++ b/src/com/android/phasebeam/phasebeam.rs @@ -63,10 +63,11 @@ void positionParticles() { halfScreenHeight = screenHeight/2.0f; quarterScreenWidth = screenWidth/4.0f; quarterScreenHeight = screenHeight/4.0f; - Particle_t* particle = dotParticles; + rs_allocation aParticles = rsGetAllocation(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); @@ -85,8 +86,6 @@ void positionParticles() { } particle->position.z = z; particle->offsetX = 0; - - particle++; } Particle_t* beam = beamParticles; |