aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-05-17 12:51:29 +0200
committerSven Gothel <[email protected]>2011-05-17 12:51:29 +0200
commitdbfae67a9248296e4ad3586ffe8c05d9fb179eaf (patch)
tree966593b5542a9940cd4c56a9afa751080d47d21d /src/jogl/classes
parentd2d47b1ab22bdc54ff35c1466934138bcb6906b4 (diff)
ShaderProgram: useProgram(..) -> public
Diffstat (limited to 'src/jogl/classes')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/glsl/ShaderProgram.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/glsl/ShaderProgram.java b/src/jogl/classes/com/jogamp/opengl/util/glsl/ShaderProgram.java
index e04a8c534..2f40363d6 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/glsl/ShaderProgram.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/glsl/ShaderProgram.java
@@ -280,8 +280,8 @@ public class ShaderProgram {
public String toString() {
return toString(null).toString();
}
-
- protected synchronized void useProgram(GL2ES2 gl, boolean on) {
+
+ public synchronized void useProgram(GL2ES2 gl, boolean on) {
if(!programLinked) throw new GLException("Program is not linked");
if(programInUse==on) return;
gl.glUseProgram(on?shaderProgram:0);