Check and propogate errors from llvm.
Change-Id: Id99a724f746d1f64eabcdf67c12646cc32ff8f9d
This commit is contained in:
@@ -56,6 +56,9 @@ public class ScriptC extends Script {
|
||||
protected ScriptC(RenderScript rs, Resources resources, int resourceID) {
|
||||
super(0, rs);
|
||||
int id = internalCreate(rs, resources, resourceID);
|
||||
if (id == 0) {
|
||||
throw new RSRuntimeException("Loading of ScriptC script failed.");
|
||||
}
|
||||
setID(id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user