diff options
author | Kenneth Russel <[email protected]> | 2009-01-12 00:51:20 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2009-01-12 00:51:20 +0000 |
commit | 612955ad82326024f5cb99d9fe4175dce78caa27 (patch) | |
tree | 941c15a6eb8f1c17b739e7a9b73feebedb7d40e9 /src/demos/proceduralTexturePhysics/Water.java | |
parent | c5cb640a428bf9b6d398616dc542ea529a2036d2 (diff) |
Fixed ArgumentIsString directive for glProgramStringARB (now
glProgramString) and updated demos. Added FIXME to
gl-ignore-gl2_es12-special.cfg about definitions that it seems should
be in the GL interface (such as the GL_ARB_imaging definitions) as
they are replicated in the GL2ES1 and GL2ES2 interfaces.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@315 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/proceduralTexturePhysics/Water.java')
-rw-r--r-- | src/demos/proceduralTexturePhysics/Water.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/demos/proceduralTexturePhysics/Water.java b/src/demos/proceduralTexturePhysics/Water.java index bf6f980..42fb785 100644 --- a/src/demos/proceduralTexturePhysics/Water.java +++ b/src/demos/proceduralTexturePhysics/Water.java @@ -1817,8 +1817,7 @@ public class Water { int target, String programBuffer) { - ByteBuffer bb = BufferUtil.newByteBuffer(programBuffer.getBytes()); - gl.glProgramString(target, GL2.GL_PROGRAM_FORMAT_ASCII, programBuffer.length(), bb); + gl.glProgramString(target, GL2.GL_PROGRAM_FORMAT_ASCII, programBuffer.length(), programBuffer); int[] errPos = new int[1]; gl.glGetIntegerv(GL2.GL_PROGRAM_ERROR_POSITION, errPos, 0); |