diff options
author | Julien Gouesse <[email protected]> | 2012-02-15 13:37:30 -0800 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-05-03 17:42:50 -0700 |
commit | 1adc4f9219eeb57fa8a4a4c9bcfff1aa7bd46f70 (patch) | |
tree | 95500b4a3e62a3b2a2db6a50cc5b5723194e70a4 /src/classes | |
parent | 9d3ff706567b17c55cbe8e8949914c1da02aee16 (diff) |
j3dcore: the vertex attribute functions have moved to the GL2 profile
Signed-off-by: Julien Gouesse <[email protected]>
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes')
-rw-r--r-- | src/classes/jogl/javax/media/j3d/JoglContext.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/classes/jogl/javax/media/j3d/JoglContext.java b/src/classes/jogl/javax/media/j3d/JoglContext.java index 7c3e8cf..a1f33c5 100644 --- a/src/classes/jogl/javax/media/j3d/JoglContext.java +++ b/src/classes/jogl/javax/media/j3d/JoglContext.java @@ -69,32 +69,32 @@ class JoglContext implements Context { class GLSLVertexAttributeImpl implements VertexAttributeImpl { public void vertexAttrPointer(GL gl, int index, int size, int type, int stride, Buffer pointer) { - gl.glVertexAttribPointerARB(index + glslVertexAttrOffset, + gl.getGL2().glVertexAttribPointerARB(index + glslVertexAttrOffset, size, type, false, stride, pointer); } public void enableVertexAttrArray(GL gl, int index) { - gl.glEnableVertexAttribArrayARB(index + glslVertexAttrOffset); + gl.getGL2().glEnableVertexAttribArrayARB(index + glslVertexAttrOffset); } public void disableVertexAttrArray(GL gl, int index) { - gl.glDisableVertexAttribArrayARB(index + glslVertexAttrOffset); + gl.getGL2().glDisableVertexAttribArrayARB(index + glslVertexAttrOffset); } public void vertexAttr1fv(GL gl, int index, FloatBuffer buf) { - gl.glVertexAttrib1fvARB(index + glslVertexAttrOffset, buf); + gl.getGL2().glVertexAttrib1fvARB(index + glslVertexAttrOffset, buf); } public void vertexAttr2fv(GL gl, int index, FloatBuffer buf) { - gl.glVertexAttrib2fvARB(index + glslVertexAttrOffset, buf); + gl.getGL2().glVertexAttrib2fvARB(index + glslVertexAttrOffset, buf); } public void vertexAttr3fv(GL gl, int index, FloatBuffer buf) { - gl.glVertexAttrib3fvARB(index + glslVertexAttrOffset, buf); + gl.getGL2().glVertexAttrib3fvARB(index + glslVertexAttrOffset, buf); } public void vertexAttr4fv(GL gl, int index, FloatBuffer buf) { - gl.glVertexAttrib4fvARB(index + glslVertexAttrOffset, buf); + gl.getGL2().glVertexAttrib4fvARB(index + glslVertexAttrOffset, buf); } } |