diff options
author | Sven Gothel <[email protected]> | 2012-04-16 21:38:49 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-04-16 21:38:49 +0200 |
commit | 179fd5dace4203317bc971a7025eb18564313f2a (patch) | |
tree | 4de579bd5a83d29a60d9edc037025ed2a12fd96d /src/demos/dualDepthPeeling/DualDepthPeeling.java | |
parent | 7278e62941a81d374eb2d38aa69ab8fe69ab2a1f (diff) |
Adapt to JOGL's ShaderUtil API changes commit 62e5686fb583ad991d5811baf242d40d21952e27v2.0-rc8v2.0-rc7
Diffstat (limited to 'src/demos/dualDepthPeeling/DualDepthPeeling.java')
-rw-r--r-- | src/demos/dualDepthPeeling/DualDepthPeeling.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/demos/dualDepthPeeling/DualDepthPeeling.java b/src/demos/dualDepthPeeling/DualDepthPeeling.java index f1e841c..41d50d0 100644 --- a/src/demos/dualDepthPeeling/DualDepthPeeling.java +++ b/src/demos/dualDepthPeeling/DualDepthPeeling.java @@ -430,10 +430,10 @@ public class DualDepthPeeling implements GLEventListener, KeyListener, MouseList ShaderProgram build(GL2ES2 gl, String basename, boolean link) { ShaderProgram sp = new ShaderProgram(); - ShaderCode vp = ShaderCode.create(gl, GL2ES2.GL_VERTEX_SHADER, 1, DualDepthPeeling.class, - "shader", null, basename); - ShaderCode fp = ShaderCode.create(gl, GL2ES2.GL_FRAGMENT_SHADER, 1, DualDepthPeeling.class, - "shader", null, basename); + ShaderCode vp = ShaderCode.create(gl, GL2ES2.GL_VERTEX_SHADER, DualDepthPeeling.class, + "shader", null, basename, false); + ShaderCode fp = ShaderCode.create(gl, GL2ES2.GL_FRAGMENT_SHADER, DualDepthPeeling.class, + "shader", null, basename, false); sp.add(vp); sp.add(fp); if(link && !sp.link(gl, System.err)) { @@ -444,10 +444,10 @@ public class DualDepthPeeling implements GLEventListener, KeyListener, MouseList ShaderProgram build(GL2ES2 gl, String[] basenames, boolean link) { ShaderProgram sp = new ShaderProgram(); ShaderCode vp = ShaderCode.create(gl, GL2ES2.GL_VERTEX_SHADER, basenames.length, DualDepthPeeling.class, - "shader", basenames, null, null); + "shader", basenames, null, null, false); sp.add(vp); ShaderCode fp = ShaderCode.create(gl, GL2ES2.GL_FRAGMENT_SHADER, basenames.length, DualDepthPeeling.class, - "shader", basenames, null, null); + "shader", basenames, null, null, false); sp.add(fp); if(link && !sp.link(gl, System.err)) { throw new GLException("Couldn't link program: "+sp); |