]> git.sesse.net Git - movit/blobdiff - fft_pass_effect.frag
Fix a small overallocation.
[movit] / fft_pass_effect.frag
index 800653a0c979c2d5e98f71b8979c10d56b6e2943..edcf6951815b1a9a1a09906f3082dad5ff36ef63 100644 (file)
@@ -7,8 +7,8 @@ uniform sampler2D PREFIX(support_tex);
 vec4 FUNCNAME(vec2 tc) {
 #if DIRECTION_VERTICAL
        vec4 support = texture2D(PREFIX(support_tex), vec2(tc.y * PREFIX(num_repeats), 0.0));
-        vec4 c1 = INPUT(vec2(tc.x, 1.0 - (tc.y + support.x)));
-        vec4 c2 = INPUT(vec2(tc.x, 1.0 - (tc.y + support.y)));
+        vec4 c1 = INPUT(vec2(tc.x, tc.y + support.x));
+        vec4 c2 = INPUT(vec2(tc.x, tc.y + support.y));
 #else
        vec4 support = texture2D(PREFIX(support_tex), vec2(tc.x * PREFIX(num_repeats), 0.0));
         vec4 c1 = INPUT(vec2(tc.x + support.x, tc.y));