From a8eae12af5064a823976e264b33c5a37bd447ef8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 10 Sep 2015 20:53:47 +0200 Subject: vo_opengl: fix shader compilation with debanding and OSX hwdec 2 things are being stupid here: Apple for requiring rectangle textures with their IOSurface interop for no reason, and OpenGL having a different sampler type for rectangle textures. --- video/out/opengl/video.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'video/out/opengl/video.c') diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 5305239c43..8d6776ce0e 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -1128,8 +1128,9 @@ static void pass_read_video(struct gl_video *p) } if (p->opts.deband) { - pass_sample_deband(p->sc, p->opts.deband_opts, 1, merged ? 1.0 : tex_mul, - p->image_w, p->image_h, &p->lfg); + pass_sample_deband(p->sc, p->opts.deband_opts, 1, p->gl_target, + merged ? 1.0 : tex_mul, p->image_w, p->image_h, + &p->lfg); GLSL(color.zw = vec2(0.0, 1.0);) // skip unused finish_pass_fbo(p, &p->chroma_deband_fbo, c_w, c_h, 1, 0); p->use_normalized_range = true; @@ -1163,7 +1164,7 @@ static void pass_read_video(struct gl_video *p) GLSL(vec4 main;) GLSLF("{\n"); if (p->opts.deband) { - pass_sample_deband(p->sc, p->opts.deband_opts, 0, tex_mul, + pass_sample_deband(p->sc, p->opts.deband_opts, 0, p->gl_target, tex_mul, p->image_w, p->image_h, &p->lfg); p->use_normalized_range = true; } else { -- cgit v1.2.3