diff options
author | wm4 <wm4@nowhere> | 2016-04-05 20:58:22 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-04-05 20:58:22 +0200 |
commit | 7a5312e9a6e53a4430da1546c98edf04bfd1650e (patch) | |
tree | cdb4f1e79a7c26159a15a2e03aa05ca3f6285f86 | |
parent | afd685490dfccd4eb5980a93e4e8f053d45b2b3f (diff) |
vo_opengl: minor simplification
It's the same functionally.
-rw-r--r-- | video/out/opengl/video.c | 5 |
1 files 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); } |