diff options
author | wm4 <wm4@nowhere> | 2014-12-16 18:55:02 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-16 18:55:20 +0100 |
commit | 0e8fbdbdb1ea212128ae6a193d198ed90f5ca4ac (patch) | |
tree | 62da75feb37ada97b833b7e0c80d4c0e763fbd87 /video/out/gl_osd.c | |
parent | 446e759f64c8a9cf23cf5ba1aa66e02d569786ff (diff) | |
download | mpv-0e8fbdbdb1ea212128ae6a193d198ed90f5ca4ac.tar.bz2 mpv-0e8fbdbdb1ea212128ae6a193d198ed90f5ca4ac.tar.xz |
vo_opengl: remove requirement for RG textures
Features not supported are disabled (although with a misleading error
message).
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) { |