From bbac20d5f42b111fb39b74c6075f57aab1fe66ba Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 11 Apr 2012 19:47:09 +0200 Subject: ShaderState: No exception in 'releaseAllAttributes()' if attribute is n/a --- src/jogl/classes/com/jogamp/opengl/util/glsl/ShaderState.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/jogl') diff --git a/src/jogl/classes/com/jogamp/opengl/util/glsl/ShaderState.java b/src/jogl/classes/com/jogamp/opengl/util/glsl/ShaderState.java index 3fffae801..62082aacd 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/glsl/ShaderState.java +++ b/src/jogl/classes/com/jogamp/opengl/util/glsl/ShaderState.java @@ -684,14 +684,10 @@ public class ShaderState { public void releaseAllAttributes(GL2ES2 gl) { if(null!=shaderProgram) { for(Iterator iter = activeAttribDataMap.values().iterator(); iter.hasNext(); ) { - if(!disableVertexAttribArray(gl, iter.next())) { - throw new GLException("Internal Error: mapped vertex attribute couldn't be disabled"); - } + disableVertexAttribArray(gl, iter.next()); } for(Iterator iter = activedAttribEnabledMap.keySet().iterator(); iter.hasNext(); ) { - if(!disableVertexAttribArray(gl, iter.next())) { - throw new GLException("Internal Error: prev enabled vertex attribute couldn't be disabled"); - } + disableVertexAttribArray(gl, iter.next()); } } activeAttribDataMap.clear(); -- cgit v1.2.3