Fix app bug, where some memory could remain uninitialized due to early exit.

Change-Id: I4bdeff1c9f28c4e27f42559f89b925819b82cfc2
This commit is contained in:
Stephen Hines
2012-02-07 19:55:19 -08:00
parent fd7545f53b
commit 432b5a25e6
2 changed files with 3 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ void root(const Ball_t *ballIn, Ball_t *ballOut, const BallControl_t *ctl, uint3
//ballOut->color.rgb = 1.f;
//ballOut->arcID = -1;
//ballOut->arcStr = 0;
return;
continue;
}
// Collision
float2 axis = normalize(vec);

View File

@@ -58,11 +58,11 @@ int root() {
if (frame & 1) {
bc.ain = rsGetAllocation(balls2);
bc.aout = rsGetAllocation(balls1);
bout = balls2;
bout = balls1;
} else {
bc.ain = rsGetAllocation(balls1);
bc.aout = rsGetAllocation(balls2);
bout = balls1;
bout = balls2;
}
bc.dimX = rsAllocationGetDimX(bc.ain);