summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}