From dbfae67a9248296e4ad3586ffe8c05d9fb179eaf Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 17 May 2011 12:51:29 +0200 Subject: ShaderProgram: useProgram(..) -> public --- src/jogl/classes/com/jogamp/opengl/util/glsl/ShaderProgram.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/com/jogamp') 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); -- cgit v1.2.3