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