]> git.sesse.net Git - movit/commitdiff
Do not bother with unbinding vertex attributes; that is automatically done when we...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 7 Feb 2016 11:12:03 +0000 (12:12 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 7 Feb 2016 11:12:18 +0000 (12:12 +0100)
effect_chain.cpp

index 9b77ef032f49f5359df6fb1925852b1b9b6bc610..0c4b7c880b6db009b4b859c09bfb890dd46c586a 100644 (file)
@@ -1758,13 +1758,6 @@ void EffectChain::render_to_fbo(GLuint dest_fbo, unsigned width, unsigned height
                }
        }
 
                }
        }
 
-       for (set<GLint>::iterator attr_it = bound_attribute_indices.begin();
-            attr_it != bound_attribute_indices.end();
-            ++attr_it) {
-               glDisableVertexAttribArray(*attr_it);
-               check_error();
-       }
-
        for (map<Phase *, GLuint>::const_iterator texture_it = output_textures.begin();
             texture_it != output_textures.end();
             ++texture_it) {
        for (map<Phase *, GLuint>::const_iterator texture_it = output_textures.begin();
             texture_it != output_textures.end();
             ++texture_it) {