summaryrefslogtreecommitdiffstats
path: root/src/demos/es2/RedSquare.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-04-16 21:38:49 +0200
committerSven Gothel <[email protected]>2012-04-16 21:38:49 +0200
commit179fd5dace4203317bc971a7025eb18564313f2a (patch)
tree4de579bd5a83d29a60d9edc037025ed2a12fd96d /src/demos/es2/RedSquare.java
parent7278e62941a81d374eb2d38aa69ab8fe69ab2a1f (diff)
Adapt to JOGL's ShaderUtil API changes commit 62e5686fb583ad991d5811baf242d40d21952e27v2.0-rc8v2.0-rc7
Diffstat (limited to 'src/demos/es2/RedSquare.java')
-rwxr-xr-xsrc/demos/es2/RedSquare.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/demos/es2/RedSquare.java b/src/demos/es2/RedSquare.java
index 536deb2..1269342 100755
--- a/src/demos/es2/RedSquare.java
+++ b/src/demos/es2/RedSquare.java
@@ -162,10 +162,10 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
private void initShader(GL2ES2 gl) {
// Create & Compile the shader objects
- ShaderCode rsVp = ShaderCode.create(gl, GL2ES2.GL_VERTEX_SHADER, 1, RedSquare.class,
- "shader", "shader/bin", "redsquare");
- ShaderCode rsFp = ShaderCode.create(gl, GL2ES2.GL_FRAGMENT_SHADER, 1, RedSquare.class,
- "shader", "shader/bin", "redsquare");
+ ShaderCode rsVp = ShaderCode.create(gl, GL2ES2.GL_VERTEX_SHADER, RedSquare.class,
+ "shader", "shader/bin", "redsquare", false);
+ ShaderCode rsFp = ShaderCode.create(gl, GL2ES2.GL_FRAGMENT_SHADER, RedSquare.class,
+ "shader", "shader/bin", "redsquare", false);
// Create & Link the shader program
ShaderProgram sp = new ShaderProgram();