From fd3ae6c561e4e53c994eb802630fef00a2e0a18b Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 22 Mar 2016 13:34:39 +0100 Subject: vo_opengl: fix blend-subtitles=video in some cases Shader miscompilation and bad output. Regression probably since commit 93546f0c (or one of the following ones). Fixes #2982. --- video/out/opengl/video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index a1e98bef14..b1c2231bb0 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -2113,6 +2113,7 @@ static void pass_render_frame(struct gl_video *p) pass_draw_osd(p, OSD_DRAW_SUB_ONLY, vpts, rect, p->texture_w, p->texture_h, p->blend_subs_fbo.fbo, false); GLSL(color = texture(texture0, texcoord0);) + pass_read_fbo(p, &p->blend_subs_fbo); } apply_shaders(p, p->opts.pre_shaders, p->texture_w, p->texture_h, p->pre_fbo); -- cgit v1.2.3