aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-jogl/src/main
diff options
context:
space:
mode:
authorJulien Gouesse <[email protected]>2013-02-28 23:36:30 +0100
committerJulien Gouesse <[email protected]>2013-02-28 23:36:30 +0100
commit642f375aba95d5e447f204ebe3b63789818a4bb5 (patch)
treeca84f6492871f016268177e9c4584a8498de2c46 /ardor3d-jogl/src/main
parent7d3eee4b0bfc75b366a024a93e5bda7f07640544 (diff)
Creates the GLU instance more reliably
Diffstat (limited to 'ardor3d-jogl/src/main')
-rw-r--r--ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglTextureStateUtil.java3
1 files changed, 1 insertions, 2 deletions
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);