diff options
Diffstat (limited to 'src/demos/es2/RedSquare.java')
-rwxr-xr-x | src/demos/es2/RedSquare.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/demos/es2/RedSquare.java b/src/demos/es2/RedSquare.java index c335478..536deb2 100755 --- a/src/demos/es2/RedSquare.java +++ b/src/demos/es2/RedSquare.java @@ -161,12 +161,10 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo PMVMatrix pmvMatrix; private void initShader(GL2ES2 gl) { - int tmpI; - // Create & Compile the shader objects - ShaderCode rsVp = ShaderCode.create(gl, gl.GL_VERTEX_SHADER, 1, RedSquare.class, + ShaderCode rsVp = ShaderCode.create(gl, GL2ES2.GL_VERTEX_SHADER, 1, RedSquare.class, "shader", "shader/bin", "redsquare"); - ShaderCode rsFp = ShaderCode.create(gl, gl.GL_FRAGMENT_SHADER, 1, RedSquare.class, + ShaderCode rsFp = ShaderCode.create(gl, GL2ES2.GL_FRAGMENT_SHADER, 1, RedSquare.class, "shader", "shader/bin", "redsquare"); // Create & Link the shader program @@ -179,7 +177,7 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo // Let's manage all our states using ShaderState. st = new ShaderState(); - st.attachShaderProgram(gl, sp); + st.attachShaderProgram(gl, sp, false); } public void init(GLAutoDrawable drawable) { |