From 7a5312e9a6e53a4430da1546c98edf04bfd1650e Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 5 Apr 2016 20:58:22 +0200 Subject: vo_opengl: minor simplification It's the same functionally. --- video/out/opengl/video.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index f9ff6aec4e..1b905d9ee0 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -2120,10 +2120,9 @@ static void pass_render_frame(struct gl_video *p) .w = p->texture_w, .h = p->texture_h, .display_par = scale[1] / scale[0], // counter compensate scaling }; - finish_pass_fbo(p, &p->blend_subs_fbo, - p->texture_w, p->texture_h, 0); + finish_pass_fbo(p, &p->blend_subs_fbo, rect.w, rect.h, 0); pass_draw_osd(p, OSD_DRAW_SUB_ONLY, vpts, rect, - p->texture_w, p->texture_h, p->blend_subs_fbo.fbo, false); + rect.w, rect.h, p->blend_subs_fbo.fbo, false); GLSL(color = texture(texture0, texcoord0);) pass_read_fbo(p, &p->blend_subs_fbo); } -- cgit v1.2.3