summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/com/jogamp')
-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();