diff options
author | Sven Gothel <[email protected]> | 2012-04-11 19:47:09 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-04-11 19:47:09 +0200 |
commit | bbac20d5f42b111fb39b74c6075f57aab1fe66ba (patch) | |
tree | 7c0547ead36c18674d5ad2c4e4b216cc0d0ce120 /src | |
parent | f10b30c16aeec428378d1d560d030b2d39801c4e (diff) |
ShaderState: No exception in 'releaseAllAttributes()' if attribute is n/a
Diffstat (limited to 'src')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/glsl/ShaderState.java | 8 |
1 files changed, 2 insertions, 6 deletions
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<GLArrayData> 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<String> 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(); |