diff options
author | wm4 <wm4@nowhere> | 2017-03-20 04:57:51 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-03-20 04:57:51 +0100 |
commit | 7e4a73c8e4ed771b914f49a2de14b830469a470a (patch) | |
tree | 204364cf03d8d02ffe85cba1673c5e033006419c /video/out/opengl/egl_helpers.c | |
parent | f8861f681f5b18ebb9c32cb6e4909766f92b9263 (diff) | |
download | mpv-7e4a73c8e4ed771b914f49a2de14b830469a470a.tar.bz2 mpv-7e4a73c8e4ed771b914f49a2de14b830469a470a.tar.xz |
vo_opengl: add a --opengl-es=force2 option
Useful for testing. Unfortunately, the nVidia EGL driver ignores this,
and returns a GLES 3.2 context anyway (which it is allowed to do). Might
still be useable with ANGLE, which will really give you a GLES 2 context
if you ask for it.
Diffstat (limited to 'video/out/opengl/egl_helpers.c')
-rw-r--r-- | video/out/opengl/egl_helpers.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/opengl/egl_helpers.c b/video/out/opengl/egl_helpers.c index 2ed1fd44d6..d1ebd9aeca 100644 --- a/video/out/opengl/egl_helpers.c +++ b/video/out/opengl/egl_helpers.c @@ -181,12 +181,14 @@ bool mpegl_create_context_opts(EGLDisplay display, struct mp_log *log, return true; } - if (try_gles) { + if (try_gles && !(opts->vo_flags & VOFLAG_GLES2)) { // ES 3.x if (create_context(display, log, true, 3, opts, out_context, out_config)) return true; + } + if (try_gles) { // ES 2.0 if (create_context(display, log, probing, 2, opts, out_context, out_config)) |