From 87ff90fb03216737df70ff83246664b7fba2663e Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 22 Aug 2011 16:38:45 +0200 Subject: Fix regression of commit 6c346d98f04e2355210960fe9ffde47432f04d62, where VBO/attribute binding wasn't updated (VBO data written, shader change/switch attribute on same location) ; Optimized interleaved GLSL VBO binding, hence split up GLArrayHandler syncData/enableState --- src/test/com/jogamp/opengl/test/junit/jogl/glsl/GLSLMiscHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/com/jogamp') diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/glsl/GLSLMiscHelper.java b/src/test/com/jogamp/opengl/test/junit/jogl/glsl/GLSLMiscHelper.java index 504691fbe..7b30dedcc 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/glsl/GLSLMiscHelper.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/glsl/GLSLMiscHelper.java @@ -45,7 +45,7 @@ public class GLSLMiscHelper { if(null != st) { Assert.assertEquals(data, st.getAttribute(data.getName())); if(st.shaderProgram().linked()) { - Assert.assertEquals(data.getLocation(), st.getAttribLocation(data.getName())); + Assert.assertEquals(data.getLocation(), st.getCachedAttribLocation(data.getName())); Assert.assertEquals(data.getLocation(), st.getAttribLocation(gl, data)); Assert.assertEquals(data.getLocation(), st.getAttribLocation(gl, data.getName())); Assert.assertEquals(data.getLocation(), gl.glGetAttribLocation(st.shaderProgram().program(), data.getName())); -- cgit v1.2.3