Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2adde7c8 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Fix OpenGL stub exception handling.

Bug: https://code.google.com/p/android/issues/detail?id=60390
Change-Id: I2bdc22c5fe75f5e41ffb9dd9259ae92cf8a12917
parent e678897f
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1073,6 +1073,7 @@ public class JniCodeEmitter {
                String decl = type.getDeclaration();
                String decl = type.getDeclaration();
                needsExit = true;
                needsExit = true;
                out.println(indent + "if (!" + cname + ") {");
                out.println(indent + "if (!" + cname + ") {");
                out.println(indent + indent + "_exception = 1;");
                out.println(indent + indent +
                out.println(indent + indent +
                            "_exceptionType = \"java/lang/IllegalArgumentException\";");
                            "_exceptionType = \"java/lang/IllegalArgumentException\";");
                out.println(indent + indent +
                out.println(indent + indent +