mirror of https://github.com/mpv-player/mpv
vo_opengl: minor simplification
It's the same functionally.
This commit is contained in:
parent
afd685490d
commit
7a5312e9a6
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue