diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-11-24 00:56:46 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-11-28 10:46:16 +0100 |
commit | 281b1d89994e3e3a9950d32fc451dff990c2320d (patch) | |
tree | 4c978a78a24151561e638f0474d54f86eca178e6 /video/out/gpu/osd.c | |
parent | f7402ff466d1426bd99eaac546d53708cc14c8b3 (diff) | |
download | mpv-281b1d89994e3e3a9950d32fc451dff990c2320d.tar.bz2 mpv-281b1d89994e3e3a9950d32fc451dff990c2320d.tar.xz |
vo_gpu: don't pass ra_fbo by value
Make it easier on compiler, no need to alloca and copy things around.
Diffstat (limited to 'video/out/gpu/osd.c')
-rw-r--r-- | video/out/gpu/osd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/gpu/osd.c b/video/out/gpu/osd.c index 91505a987d..7892904c74 100644 --- a/video/out/gpu/osd.c +++ b/video/out/gpu/osd.c @@ -286,7 +286,7 @@ static void get_3d_side_by_side(int stereo_mode, int div[2]) } void mpgl_osd_draw_finish(struct mpgl_osd *ctx, int index, - struct gl_shader_cache *sc, struct ra_fbo fbo) + struct gl_shader_cache *sc, const struct ra_fbo *fbo) { struct mpgl_osd_part *part = ctx->parts[index]; @@ -312,7 +312,7 @@ void mpgl_osd_draw_finish(struct mpgl_osd *ctx, 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, fbo.tex, false, vertex_vao, MP_ARRAY_SIZE(vertex_vao), + gl_sc_dispatch_draw(sc, fbo->tex, false, vertex_vao, MP_ARRAY_SIZE(vertex_vao), sizeof(struct vertex), part->vertices, part->num_vertices); } |