diff options
Diffstat (limited to 'video/out/gl_osd.c')
-rw-r--r-- | video/out/gl_osd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/gl_osd.c b/video/out/gl_osd.c index 67944186a1..6b97ef77cf 100644 --- a/video/out/gl_osd.c +++ b/video/out/gl_osd.c @@ -61,6 +61,9 @@ struct mpgl_osd *mpgl_osd_init(GL *gl, struct mp_log *log, struct osd_state *osd .scratch = talloc_zero_size(ctx, 1), }; + if (!(gl->mpgl_caps & MPGL_CAP_TEX_RG)) + ctx->fmt_table = osd_to_gl_legacy_formats; + for (int n = 0; n < MAX_OSD_PARTS; n++) { struct mpgl_osd_part *p = talloc_ptrtype(ctx, p); *p = (struct mpgl_osd_part) { |