diff options
Diffstat (limited to 'video/out/opengl/osd.c')
-rw-r--r-- | video/out/opengl/osd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/video/out/opengl/osd.c b/video/out/opengl/osd.c index a656451c2e..2678e12774 100644 --- a/video/out/opengl/osd.c +++ b/video/out/opengl/osd.c @@ -282,8 +282,8 @@ static void get_3d_side_by_side(int stereo_mode, int div[2]) } } -void mpgl_osd_draw_finish(struct mpgl_osd *ctx, int vp_w, int vp_h, int index, - struct gl_shader_cache *sc, struct ra_tex *target) +void mpgl_osd_draw_finish(struct mpgl_osd *ctx, int index, + struct gl_shader_cache *sc, struct fbodst target) { struct mpgl_osd_part *part = ctx->parts[index]; @@ -295,7 +295,7 @@ void mpgl_osd_draw_finish(struct mpgl_osd *ctx, int vp_w, int vp_h, int index, for (int x = 0; x < div[0]; x++) { for (int y = 0; y < div[1]; y++) { struct gl_transform t; - gl_transform_ortho(&t, 0, vp_w, 0, vp_h); + gl_transform_ortho_fbodst(&t, target); float a_x = ctx->osd_res.w * x; float a_y = ctx->osd_res.h * y; @@ -309,7 +309,7 @@ void mpgl_osd_draw_finish(struct mpgl_osd *ctx, int vp_w, int vp_h, int index, const int *factors = &blend_factors[part->format][0]; gl_sc_blend(sc, factors[0], factors[1], factors[2], factors[3]); - gl_sc_dispatch_draw(sc, target, part->vertices, part->num_vertices); + gl_sc_dispatch_draw(sc, target.tex, part->vertices, part->num_vertices); } static void set_res(struct mpgl_osd *ctx, struct mp_osd_res res, int stereo_mode) |