commit | 2adde7c8372db646da2262731e47cda05afd7fe2 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Sep 24 17:18:05 2013 -0700 |
committer | Elliott Hughes <enh@google.com> | Tue Sep 24 17:18:05 2013 -0700 |
tree | efc1d094a73333d61f9fc4827271628f5b89c0e8 | |
parent | e678897f3a3bdafe45f939bb12ca454365374e49 [diff] [blame] |
Fix OpenGL stub exception handling. Bug: https://code.google.com/p/android/issues/detail?id=60390 Change-Id: I2bdc22c5fe75f5e41ffb9dd9259ae92cf8a12917
diff --git a/opengl/tools/glgen/src/JniCodeEmitter.java b/opengl/tools/glgen/src/JniCodeEmitter.java index d5e2d34..b1bd1fd 100644 --- a/opengl/tools/glgen/src/JniCodeEmitter.java +++ b/opengl/tools/glgen/src/JniCodeEmitter.java
@@ -1073,6 +1073,7 @@ 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 +