Merge "Fix app bug, where some memory could remain uninitialized due to early exit."
This commit is contained in:
committed by
Android (Google) Code Review
commit
ffb9333cb4
@@ -58,7 +58,7 @@ void root(const Ball_t *ballIn, Ball_t *ballOut, const BallControl_t *ctl, uint3
|
|||||||
//ballOut->color.rgb = 1.f;
|
//ballOut->color.rgb = 1.f;
|
||||||
//ballOut->arcID = -1;
|
//ballOut->arcID = -1;
|
||||||
//ballOut->arcStr = 0;
|
//ballOut->arcStr = 0;
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
// Collision
|
// Collision
|
||||||
float2 axis = normalize(vec);
|
float2 axis = normalize(vec);
|
||||||
|
|||||||
@@ -58,11 +58,11 @@ int root() {
|
|||||||
if (frame & 1) {
|
if (frame & 1) {
|
||||||
bc.ain = rsGetAllocation(balls2);
|
bc.ain = rsGetAllocation(balls2);
|
||||||
bc.aout = rsGetAllocation(balls1);
|
bc.aout = rsGetAllocation(balls1);
|
||||||
bout = balls2;
|
bout = balls1;
|
||||||
} else {
|
} else {
|
||||||
bc.ain = rsGetAllocation(balls1);
|
bc.ain = rsGetAllocation(balls1);
|
||||||
bc.aout = rsGetAllocation(balls2);
|
bc.aout = rsGetAllocation(balls2);
|
||||||
bout = balls1;
|
bout = balls2;
|
||||||
}
|
}
|
||||||
|
|
||||||
bc.dimX = rsAllocationGetDimX(bc.ain);
|
bc.dimX = rsAllocationGetDimX(bc.ain);
|
||||||
|
|||||||
Reference in New Issue
Block a user