From 09b269423f11d0f867831b91d989a6bebbd87738 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 29 Aug 2015 04:21:11 +0200 Subject: Bug 1203: Fix GLES3Impl.getGLES3(): Test _isES3 and throw GLException if not. --- make/config/jogl/gl-impl-CustomJavaCode-gles3.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'make/config/jogl/gl-impl-CustomJavaCode-gles3.java') 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; } -- cgit v1.2.3