diff options
Diffstat (limited to 'make/glu-CustomJavaCode-gles1_if.java')
-rwxr-xr-x | make/glu-CustomJavaCode-gles1_if.java | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/make/glu-CustomJavaCode-gles1_if.java b/make/glu-CustomJavaCode-gles1_if.java index 6b2504388..02e95a324 100755 --- a/make/glu-CustomJavaCode-gles1_if.java +++ b/make/glu-CustomJavaCode-gles1_if.java @@ -91,19 +91,11 @@ public static final GLU createGLU(GL gl) throws GLException { if(gl.isGL2()) { clazzName="javax.media.opengl.glu.gl2.GLUgl2"; } else if(gl.isGLES1()) { - clazzName="javax.media.opengl.glu.gl2.GLUgl2"; + clazzName="javax.media.opengl.glu.es1.GLUes1"; } else { throw new GLException("GLU not supported for GL "+gl); } - try { - Class clazz = Class.forName(clazzName); - Constructor c = clazz.getDeclaredConstructor(new Class[0]); - glu = (GLU) c.newInstance(null); - } catch (Exception e) { - throw new GLException(e); - } - - return glu; + return (GLU) GLReflection.createInstance(clazzName); } public static final GL getCurrentGL() throws GLException { |