From: Steinar H. Gunderson Date: Sun, 7 Oct 2012 18:55:17 +0000 (+0200) Subject: Remove a flipping that is now wrong (again, because phase inputs are always RTT). X-Git-Tag: 1.0~351 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=bacfcc798b175efb1c57fc2cc5d1df6910977ebb Remove a flipping that is now wrong (again, because phase inputs are always RTT). --- diff --git a/effect_chain.cpp b/effect_chain.cpp index 7b3d2e8..7dd19cc 100644 --- a/effect_chain.cpp +++ b/effect_chain.cpp @@ -220,13 +220,6 @@ EffectChain::Phase *EffectChain::compile_glsl_program(const std::vectornum_inputs() == 0) { - // OpenGL's origin is bottom-left, but most graphics software assumes - // a top-left origin. Thus, for inputs that come from the user, - // we flip the y coordinate. However, for FBOs, the origin - // is all correct, so don't do anything. - frag_shader += "\ttc.y = 1.0f - tc.y;\n"; - } frag_shader += "\treturn texture2D(tex_" + effect_id + ", tc);\n"; frag_shader += "}\n"; frag_shader += "\n";