diff options
author | wm4 <wm4@nowhere> | 2015-03-21 17:29:34 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-21 17:29:34 +0100 |
commit | d790dbc3b5b29fb6f26f8510b97ee8f94688b833 (patch) | |
tree | 2cdf6f38e6d4c1ce5b39388c0945755810912e63 | |
parent | 72e67064a3d0cacbceaaca550d111f63119cb5da (diff) | |
download | mpv-d790dbc3b5b29fb6f26f8510b97ee8f94688b833.tar.bz2 mpv-d790dbc3b5b29fb6f26f8510b97ee8f94688b833.tar.xz |
vo_opengl: fix bicubic_fast scaler
-rw-r--r-- | video/out/gl_video.c | 2 |
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;) |