]> git.sesse.net Git - movit/commitdiff
Disable dither explicitly per frame; fixes some weird artifacts I found.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 5 Oct 2015 22:06:14 +0000 (00:06 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 5 Oct 2015 22:06:14 +0000 (00:06 +0200)
effect_chain.cpp

index af0710e46a2ce6c82cd40cf9eaba7c57ed9d7a9e..b6b5f59925df18b83ea75100e276e6d153076310 100644 (file)
@@ -1646,6 +1646,10 @@ void EffectChain::render_to_fbo(GLuint dest_fbo, unsigned width, unsigned height
 {
        assert(finalized);
 
+       // This needs to be set anew, in case we are coming from a different context
+       // from when we initialized.
+       glDisable(GL_DITHER);
+
        // Save original viewport.
        GLuint x = 0, y = 0;