summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video_shaders.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-03-16 19:09:52 +0100
committerwm4 <wm4@nowhere>2016-03-16 19:09:52 +0100
commit71642f5d23ed4ae78172977ab46030e1f967b674 (patch)
treede7e63d2e3e6a172ab1e57b94a792c11a0ce5cad /video/out/opengl/video_shaders.c
parentf8ec535131e1151ba13646acb639a10223d16f84 (diff)
downloadmpv-71642f5d23ed4ae78172977ab46030e1f967b674.tar.bz2
mpv-71642f5d23ed4ae78172977ab46030e1f967b674.tar.xz
vo_opengl: fix sharpen filter
Regression since commit 93546f0c. Fixes #2956.
Diffstat (limited to 'video/out/opengl/video_shaders.c')
-rw-r--r--video/out/opengl/video_shaders.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/opengl/video_shaders.c b/video/out/opengl/video_shaders.c
index ff6663d9a5..62feb47738 100644
--- a/video/out/opengl/video_shaders.c
+++ b/video/out/opengl/video_shaders.c
@@ -398,10 +398,10 @@ void pass_sample_deband(struct gl_shader_cache *sc, struct deband_opts *opts,
GLSLF("}\n");
}
-void pass_sample_unsharp(struct gl_shader_cache *sc, float param)
+void pass_sample_unsharp(struct gl_shader_cache *sc, int tex_num, float param)
{
GLSLF("// unsharp\n");
- sampler_prelude(sc, 0);
+ sampler_prelude(sc, tex_num);
GLSLF("{\n");
GLSL(vec2 st1 = pt * 1.2;)