Merge "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