Fix OpenGL stub exception handling.

Bug: https://code.google.com/p/android/issues/detail?id=60390
Change-Id: I2bdc22c5fe75f5e41ffb9dd9259ae92cf8a12917
This commit is contained in:
Elliott Hughes 2013-09-24 17:18:05 -07:00
parent e678897f3a
commit 2adde7c837

View File

@ -1073,6 +1073,7 @@ public class JniCodeEmitter {
String decl = type.getDeclaration();
needsExit = true;
out.println(indent + "if (!" + cname + ") {");
out.println(indent + indent + "_exception = 1;");
out.println(indent + indent +
"_exceptionType = \"java/lang/IllegalArgumentException\";");
out.println(indent + indent +