diff options
author | wm4 <wm4@nowhere> | 2014-12-19 01:03:08 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-19 01:21:19 +0100 |
commit | a0051b9da28fb67cebae1fef322603ddb8f619f8 (patch) | |
tree | 206133468f186beb262e4a35d3462f06882df465 /video/out/gl_osd.c | |
parent | fe35130ba9079c09c74a5f5334584f1ccca15e52 (diff) | |
download | mpv-a0051b9da28fb67cebae1fef322603ddb8f619f8.tar.bz2 mpv-a0051b9da28fb67cebae1fef322603ddb8f619f8.tar.xz |
vo_opengl: add GLES 2 support
Rather basic support. Almost nothing works, and even if it does, it's
bound to be inefficient (due to texture upload). This was tested with
the nVidia desktop binary drivers, which provide GLES 2 support only.
However, nVidia is not known to be very strict about OpenGL, and the
driver is very new too, so the vo_opengl code will have bugs too.
Diffstat (limited to 'video/out/gl_osd.c')
-rw-r--r-- | video/out/gl_osd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_osd.c b/video/out/gl_osd.c index f0917c364e..2bac4ef357 100644 --- a/video/out/gl_osd.c +++ b/video/out/gl_osd.c @@ -66,7 +66,7 @@ struct mpgl_osd *mpgl_osd_init(GL *gl, struct mp_log *log, struct osd_state *osd .scratch = talloc_zero_size(ctx, 1), }; - if (gl->es) { + if (gl->es >= 300) { ctx->fmt_table = osd_to_gles3_formats; } else if (!(gl->mpgl_caps & MPGL_CAP_TEX_RG)) { ctx->fmt_table = osd_to_gl_legacy_formats; |