aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-04-11 19:47:09 +0200
committerSven Gothel <[email protected]>2012-04-11 19:47:09 +0200
commitbbac20d5f42b111fb39b74c6075f57aab1fe66ba (patch)
tree7c0547ead36c18674d5ad2c4e4b216cc0d0ce120 /src/jogl
parentf10b30c16aeec428378d1d560d030b2d39801c4e (diff)
ShaderState: No exception in 'releaseAllAttributes()' if attribute is n/a
Diffstat (limited to 'src/jogl')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/glsl/ShaderState.java8
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();