diff options
author | Sven Gothel <[email protected]> | 2015-08-29 04:21:11 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-08-29 04:21:11 +0200 |
commit | 09b269423f11d0f867831b91d989a6bebbd87738 (patch) | |
tree | ae3bdf3e1634a9a2ad7f4291c16152dbff64fbf9 /make | |
parent | 390ccc3e549e4cc13b7dab91387e72c1f10b77a9 (diff) |
Bug 1203: Fix GLES3Impl.getGLES3(): Test _isES3 and throw GLException if not.
Diffstat (limited to 'make')
-rw-r--r-- | make/config/jogl/gl-impl-CustomJavaCode-gles3.java | 3 |
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; } |