vo_opengl: minor simplification

It's the same functionally.
This commit is contained in:
wm4 2016-04-05 20:58:22 +02:00
parent afd685490d
commit 7a5312e9a6
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}