diff options
author | Kenneth Russel <[email protected]> | 2005-07-08 16:03:14 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-07-08 16:03:14 +0000 |
commit | affb27f968fb3cb7902146ad7b521b7b24d18fe5 (patch) | |
tree | f9aa81f35a16c15726f3df234ef78b60dbd9ccb0 /src/demos/vertexProgWarp | |
parent | 3cce9fefe99b2a9fe7372c5be21ba7a49f98bf66 (diff) |
Fixed Windows port after changes to GlueGen to include array offsets.
Ported all demos to new API. Temporarily added back in GLU entry
points taking primitive arrays as the underlying APIs (in particular,
glTexImage2D) do not yet support non-direct Buffers. Changed C code
generation to only add in array offset if array is non-null. Fixed bug
in GLU tesselator demo's vertex callback.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JSR-231@99 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/vertexProgWarp')
-rw-r--r-- | src/demos/vertexProgWarp/VertexProgWarp.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/demos/vertexProgWarp/VertexProgWarp.java b/src/demos/vertexProgWarp/VertexProgWarp.java index 3361755..bacecab 100644 --- a/src/demos/vertexProgWarp/VertexProgWarp.java +++ b/src/demos/vertexProgWarp/VertexProgWarp.java @@ -150,7 +150,7 @@ public class VertexProgWarp { for(int i=0; i<NUM_PROGS; i++) { int[] vtxProgTmp = new int[1]; - gl.glGenProgramsARB(1, vtxProgTmp); + gl.glGenProgramsARB(1, vtxProgTmp, 0); programs[i] = vtxProgTmp[0]; gl.glBindProgramARB(GL.GL_VERTEX_PROGRAM_ARB, programs[i]); gl.glProgramStringARB(GL.GL_VERTEX_PROGRAM_ARB, GL.GL_PROGRAM_FORMAT_ASCII_ARB, programTexts[i].length(), programTexts[i]); |