]> git.sesse.net Git - movit/commitdiff
Add some earlier check_error() calls so that we do not get confusing behavior if...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 1 Nov 2015 01:02:10 +0000 (02:02 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 1 Nov 2015 01:02:10 +0000 (02:02 +0100)
effect_chain.cpp

index b6b5f59925df18b83ea75100e276e6d153076310..4a333ea7c94ea32af0f86e7194c0631427d4be52 100644 (file)
@@ -1648,7 +1648,9 @@ void EffectChain::render_to_fbo(GLuint dest_fbo, unsigned width, unsigned height
 
        // This needs to be set anew, in case we are coming from a different context
        // from when we initialized.
+       check_error();
        glDisable(GL_DITHER);
+       check_error();
 
        // Save original viewport.
        GLuint x = 0, y = 0;
@@ -1663,6 +1665,7 @@ void EffectChain::render_to_fbo(GLuint dest_fbo, unsigned width, unsigned height
        }
 
        // Basic state.
+       check_error();
        glDisable(GL_BLEND);
        check_error();
        glDisable(GL_DEPTH_TEST);