aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-08-29 04:21:11 +0200
committerSven Gothel <[email protected]>2015-08-29 04:21:11 +0200
commit09b269423f11d0f867831b91d989a6bebbd87738 (patch)
treeae3bdf3e1634a9a2ad7f4291c16152dbff64fbf9
parent390ccc3e549e4cc13b7dab91387e72c1f10b77a9 (diff)
Bug 1203: Fix GLES3Impl.getGLES3(): Test _isES3 and throw GLException if not.
-rw-r--r--make/config/jogl/gl-impl-CustomJavaCode-gles3.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/make/config/jogl/gl-impl-CustomJavaCode-gles3.java b/make/config/jogl/gl-impl-CustomJavaCode-gles3.java
index 1e9082330..0037963e6 100644
--- a/make/config/jogl/gl-impl-CustomJavaCode-gles3.java
+++ b/make/config/jogl/gl-impl-CustomJavaCode-gles3.java
@@ -171,6 +171,9 @@ public final GLES2 getGLES2() throws GLException {
@Override
public final GLES3 getGLES3() throws GLException {
+ if(!_isES3) {
+ throw new GLException("Not a GLES3 implementation");
+ }
return this;
}