Properly recover from failed compilation.

BUG=5955072

We used to call delete, which did not update the Context's view of the world,
leading to potential segfaults on Context teardown. This change also enables
exceptions to be thrown when runtime errors are encountered.

Change-Id: If63578efff2d7dd03639da1049c1a5ebc69fde35
This commit is contained in:
Stephen Hines
2012-02-02 13:23:20 -08:00
parent 07c12933e3
commit 862dadb7a7
2 changed files with 2 additions and 2 deletions

View File

@ -837,7 +837,7 @@ public class RenderScript {
mRS.mErrorCallback.mErrorNum = subID;
mRS.mErrorCallback.run();
} else {
//throw new RSRuntimeException("Received error num " + subID + ", details: " + e);
throw new RSRuntimeException("Received error num " + subID + ", details: " + e);
}
continue;
}