X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain.cpp;h=b6b5f59925df18b83ea75100e276e6d153076310;hp=af0710e46a2ce6c82cd40cf9eaba7c57ed9d7a9e;hb=236a0ad8b604d5b3bff53f40b600991168f76800;hpb=3c2ad5e6496cc518f6abd23a5a5332314e8dab80 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;