summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-21 17:29:34 +0100
committerwm4 <wm4@nowhere>2015-03-21 17:29:34 +0100
commitd790dbc3b5b29fb6f26f8510b97ee8f94688b833 (patch)
tree2cdf6f38e6d4c1ce5b39388c0945755810912e63 /video
parent72e67064a3d0cacbceaaca550d111f63119cb5da (diff)
downloadmpv-d790dbc3b5b29fb6f26f8510b97ee8f94688b833.tar.bz2
mpv-d790dbc3b5b29fb6f26f8510b97ee8f94688b833.tar.xz
vo_opengl: fix bicubic_fast scaler
Diffstat (limited to 'video')
-rw-r--r--video/out/gl_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index 7d92b47223..a15784228d 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -1125,7 +1125,7 @@ static void pass_sample_bicubic_fast(struct gl_video *p)
GLSL(vec4 color;)
GLSLF("{\n");
GLSL(vec2 pt = 1.0 / sample_size;)
- GLSL(vec2 fcoord = fract(sample_tex * sample_size + vec2(0.5, 0.5));)
+ GLSL(vec2 fcoord = fract(sample_pos * sample_size + vec2(0.5, 0.5));)
bicubic_calcweights(p, "parmx", "fcoord.x");
bicubic_calcweights(p, "parmy", "fcoord.y");
GLSL(vec4 cdelta;)