summaryrefslogtreecommitdiffstats
path: root/video/out/vo_opengl.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-13 23:40:52 +0200
committerwm4 <wm4@nowhere>2015-05-14 00:05:39 +0200
commit10de9b091a59e4831bb3fbfc46eb1d3c7558c9d8 (patch)
treedbb20ff7a385a8992f11cc036658a9f3dbf4b2c9 /video/out/vo_opengl.c
parent27da344e6f88166a236da0e3c2163c05125e4cb3 (diff)
downloadmpv-10de9b091a59e4831bb3fbfc46eb1d3c7558c9d8.tar.bz2
mpv-10de9b091a59e4831bb3fbfc46eb1d3c7558c9d8.tar.xz
vo_opengl: change user options for requesting GLES
Instead of having separate backends, make use of GLES a flag. This reduces the number of backends and the resulting annoyances. Also, nobody cares about using GLES, so there's no backward compatibility either.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r--video/out/vo_opengl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c
index 1ca251a78f..115c0fcebe 100644
--- a/video/out/vo_opengl.c
+++ b/video/out/vo_opengl.c
@@ -75,6 +75,7 @@ struct gl_priv {
int dwm_flush;
char *backend;
+ int es;
bool frame_started;
@@ -415,6 +416,9 @@ static int preinit(struct vo *vo)
if (p->use_gl_debug)
vo_flags |= VOFLAG_GL_DEBUG;
+ if (p->es)
+ vo_flags |= VOFLAG_GLES;
+
if (p->allow_sw)
vo->probing = false;
@@ -467,6 +471,7 @@ static const struct m_option options[] = {
OPT_FLAG("debug", use_gl_debug, 0),
OPT_STRING_VALIDATE("backend", backend, 0, mpgl_validate_backend_opt),
OPT_FLAG("sw", allow_sw, 0),
+ OPT_FLAG("es", es, 0),
OPT_INTPAIR("check-pattern", opt_pattern, 0),
OPT_SUBSTRUCT("", renderer_opts, gl_video_conf, 0),