]> git.sesse.net Git - movit/blobdiff - effect_chain.cpp
Fix GLSL compilation errors on some drivers.
[movit] / effect_chain.cpp
index 751a6be2d361839c754ab8aeec4bc6c3f049cae3..b6b5f59925df18b83ea75100e276e6d153076310 100644 (file)
@@ -391,7 +391,7 @@ void EffectChain::compile_glsl_program(Phase *phase)
                        frag_shader_header += "#define YCBCR_ALSO_OUTPUT_RGBA 1\n";
                }
        }
-       frag_shader.append(read_version_dependent_file("footer", "frag"));
+       frag_shader.append(read_file("footer.frag"));
 
        // Collect uniforms from all effects and output them. Note that this needs
        // to happen after output_fragment_shader(), even though the uniforms come
@@ -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;