From 2adde7c8372db646da2262731e47cda05afd7fe2 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 24 Sep 2013 17:18:05 -0700 Subject: [PATCH] Fix OpenGL stub exception handling. Bug: https://code.google.com/p/android/issues/detail?id=60390 Change-Id: I2bdc22c5fe75f5e41ffb9dd9259ae92cf8a12917 --- opengl/tools/glgen/src/JniCodeEmitter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/opengl/tools/glgen/src/JniCodeEmitter.java b/opengl/tools/glgen/src/JniCodeEmitter.java index d5e2d3424..b1bd1fdcf 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 +