From 236a0ad8b604d5b3bff53f40b600991168f76800 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 6 Oct 2015 00:06:14 +0200 Subject: [PATCH] Disable dither explicitly per frame; fixes some weird artifacts I found. --- effect_chain.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/effect_chain.cpp b/effect_chain.cpp index af0710e..b6b5f59 100644 --- a/effect_chain.cpp +++ b/effect_chain.cpp @@ -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; -- 2.39.2