From 642f375aba95d5e447f204ebe3b63789818a4bb5 Mon Sep 17 00:00:00 2001 From: Julien Gouesse Date: Thu, 28 Feb 2013 23:36:30 +0100 Subject: Creates the GLU instance more reliably --- .../main/java/com/ardor3d/scene/state/jogl/JoglTextureStateUtil.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ardor3d-jogl/src/main') diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglTextureStateUtil.java b/ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglTextureStateUtil.java index 0cb091c..1bbe675 100644 --- a/ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglTextureStateUtil.java +++ b/ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglTextureStateUtil.java @@ -24,7 +24,6 @@ import javax.media.opengl.GLContext; import javax.media.opengl.GLException; import javax.media.opengl.fixedfunc.GLMatrixFunc; import javax.media.opengl.glu.GLU; -import javax.media.opengl.glu.gl2.GLUgl2; import com.ardor3d.image.Image; import com.ardor3d.image.Texture; @@ -128,7 +127,7 @@ public class JoglTextureStateUtil { final Texture.Type type = texture.getType(); final GL gl = GLContext.getCurrentGL(); - final GLU glu = new GLUgl2(); + final GLU glu = GLU.createGLU(gl); // bind our texture id to this unit. doTextureBind(texture, unit, false); -- cgit v1.2.3