* commit '89e4c715e01f4a2da31a92788547282d699752bf': Add check and throw for failed Intrinsic init.
This commit is contained in:
@@ -27,5 +27,8 @@ package android.renderscript;
|
||||
public abstract class ScriptIntrinsic extends Script {
|
||||
ScriptIntrinsic(long id, RenderScript rs) {
|
||||
super(id, rs);
|
||||
if (id == 0) {
|
||||
throw new RSRuntimeException("Loading of ScriptIntrinsic failed.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user