From bacfcc798b175efb1c57fc2cc5d1df6910977ebb Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 7 Oct 2012 20:55:17 +0200 Subject: [PATCH] Remove a flipping that is now wrong (again, because phase inputs are always RTT). --- effect_chain.cpp | 7 ------- 1 file changed, 7 deletions(-) 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"; -- 2.39.2