summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-09-24 17:18:05 -0700
committerElliott Hughes <enh@google.com>2013-09-24 17:18:05 -0700
commit2adde7c8372db646da2262731e47cda05afd7fe2 (patch)
treeefc1d094a73333d61f9fc4827271628f5b89c0e8 /opengl
parente678897f3a3bdafe45f939bb12ca454365374e49 (diff)
downloadframeworks_native-2adde7c8372db646da2262731e47cda05afd7fe2.zip
frameworks_native-2adde7c8372db646da2262731e47cda05afd7fe2.tar.gz
frameworks_native-2adde7c8372db646da2262731e47cda05afd7fe2.tar.bz2
Fix OpenGL stub exception handling.
Bug: https://code.google.com/p/android/issues/detail?id=60390 Change-Id: I2bdc22c5fe75f5e41ffb9dd9259ae92cf8a12917
Diffstat (limited to 'opengl')
-rw-r--r--opengl/tools/glgen/src/JniCodeEmitter.java1
1 files changed, 1 insertions, 0 deletions
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 @@ 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 +