From 21b84da775fae5806481ecc658a207bf603126d5 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 27 Jun 2014 08:57:09 +0200 Subject: GLU: Make ProjectFloat/ProjectDouble final and deprecate GLU.destroy() method. --- make/config/jogl/glu-CustomJavaCode-base.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'make/config/jogl/glu-CustomJavaCode-base.java') diff --git a/make/config/jogl/glu-CustomJavaCode-base.java b/make/config/jogl/glu-CustomJavaCode-base.java index 2401e9c94..606583acf 100644 --- a/make/config/jogl/glu-CustomJavaCode-base.java +++ b/make/config/jogl/glu-CustomJavaCode-base.java @@ -128,14 +128,11 @@ public static final GLU createGLU(GL gl) throws GLException { public GLU() { - this.project = new ProjectFloat(); + project = new ProjectFloat(); } +/** @deprecated No more used, NOP */ public void destroy() { - if(null!=this.project) { - this.project.destroy(); - this.project=null; - } } public static final GL getCurrentGL() throws GLException { @@ -1315,7 +1312,7 @@ public final void gluSphere(GLUquadric quad, double radius, int slices, int stac // Projection routines // -private ProjectFloat project; +private final ProjectFloat project; public void gluOrtho2D(float left, float right, float bottom, float top) { project.gluOrtho2D(getCurrentGL().getGL2ES1(), left, right, bottom, top); -- cgit v1.2.3