Merge "Tests/RS: Add RS context check for RsBalls setAccel()"
This commit is contained in:
@@ -105,7 +105,7 @@ public class BallsView extends RSSurfaceView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void setAccel(float x, float y, float z) {
|
void setAccel(float x, float y, float z) {
|
||||||
if (mRender == null) {
|
if ((mRender == null) || (mRS == null)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mRender.setAccel(x, -y);
|
mRender.setAccel(x, -y);
|
||||||
|
|||||||
Reference in New Issue
Block a user