From dc2fbacfa01bcd6ae8747652a50ff1556a8e9fd7 Mon Sep 17 00:00:00 2001 From: Julien Gouesse Date: Tue, 30 Jul 2013 20:49:02 +0200 Subject: Switches to JOGL 2.0.2 --- .../com/ardor3d/scene/state/jogl/JoglShaderObjectsStateUtil.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ardor3d-jogl/src/main/java/com') diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglShaderObjectsStateUtil.java b/ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglShaderObjectsStateUtil.java index 8d8dccb..c28b028 100644 --- a/ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglShaderObjectsStateUtil.java +++ b/ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglShaderObjectsStateUtil.java @@ -19,6 +19,7 @@ import javax.media.opengl.GL; import javax.media.opengl.GL2; import javax.media.opengl.GL2ES2; import javax.media.opengl.GL3; +import javax.media.opengl.GL4; import javax.media.opengl.GLContext; import com.ardor3d.renderer.ContextCapabilities; @@ -226,10 +227,10 @@ public abstract class JoglShaderObjectsStateUtil { if (gl.isGL2()) { state._tessellationControlShaderID = gl.getGL2() - .glCreateShaderObjectARB(GL3.GL_TESS_CONTROL_SHADER); + .glCreateShaderObjectARB(GL4.GL_TESS_CONTROL_SHADER); } else { if (gl.isGL2ES2()) { - state._tessellationControlShaderID = gl.getGL2ES2().glCreateShader(GL3.GL_TESS_CONTROL_SHADER); + state._tessellationControlShaderID = gl.getGL2ES2().glCreateShader(GL4.GL_TESS_CONTROL_SHADER); } } @@ -281,11 +282,11 @@ public abstract class JoglShaderObjectsStateUtil { if (gl.isGL2()) { state._tessellationEvaluationShaderID = gl.getGL2().glCreateShaderObjectARB( - GL3.GL_TESS_CONTROL_SHADER); + GL4.GL_TESS_CONTROL_SHADER); } else { if (gl.isGL2ES2()) { state._tessellationEvaluationShaderID = gl.getGL2ES2().glCreateShader( - GL3.GL_TESS_CONTROL_SHADER); + GL4.GL_TESS_CONTROL_SHADER); } } -- cgit v1.2.3