OSDN Git Service

Fix fountain crash.
authorJason Sams <rjsams@android.com>
Sat, 26 Sep 2009 03:24:54 +0000 (20:24 -0700)
committerJason Sams <rjsams@android.com>
Sat, 26 Sep 2009 03:24:54 +0000 (20:24 -0700)
libs/rs/java/Fountain/res/raw/fountain.c

index 57e10cf..86f0f99 100644 (file)
@@ -31,10 +31,11 @@ int main(int launchID) {
             np->b = b;
             np->a = 0xf0;
             newPart++;
+            np++;
             if (newPart >= count) {
                 newPart = 0;
+                np = &p[newPart];
             }
-            np++;
         }
     }