Merge "Properly recover from failed compilation."
This commit is contained in:
committed by
Android (Google) Code Review
commit
cc2daede56
@ -837,7 +837,7 @@ public class RenderScript {
|
|||||||
mRS.mErrorCallback.mErrorNum = subID;
|
mRS.mErrorCallback.mErrorNum = subID;
|
||||||
mRS.mErrorCallback.run();
|
mRS.mErrorCallback.run();
|
||||||
} else {
|
} else {
|
||||||
//throw new RSRuntimeException("Received error num " + subID + ", details: " + e);
|
throw new RSRuntimeException("Received error num " + subID + ", details: " + e);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -322,7 +322,7 @@ RsScript rsi_ScriptCCreate(Context *rsc,
|
|||||||
|
|
||||||
if (!s->runCompiler(rsc, resName, cacheDir, (uint8_t *)text, text_length)) {
|
if (!s->runCompiler(rsc, resName, cacheDir, (uint8_t *)text, text_length)) {
|
||||||
// Error during compile, destroy s and return null.
|
// Error during compile, destroy s and return null.
|
||||||
delete s;
|
ObjectBase::checkDelete(s);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user