diff options
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r-- | video/out/vo_opengl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c index 419631a0df..a1b9f6a75b 100644 --- a/video/out/vo_opengl.c +++ b/video/out/vo_opengl.c @@ -373,6 +373,8 @@ static int preinit(struct vo *vo) if (p->opts.es == 1) vo_flags |= VOFLAG_GLES; + if (p->opts.es == 2) + vo_flags |= VOFLAG_GLES | VOFLAG_GLES2; if (p->opts.es == -1) vo_flags |= VOFLAG_NO_GLES; @@ -437,7 +439,8 @@ const struct vo_driver video_out_opengl = { OPT_STRING_VALIDATE("opengl-backend", opts.backend, 0, mpgl_validate_backend_opt), OPT_FLAG("opengl-sw", opts.allow_sw, 0), - OPT_CHOICE("opengl-es", opts.es, 0, ({"no", -1}, {"auto", 0}, {"yes", 1})), + OPT_CHOICE("opengl-es", opts.es, 0, ({"no", -1}, {"auto", 0}, + {"yes", 1}, {"force2", 2})), OPT_INTPAIR("opengl-check-pattern", opts.pattern, 0), OPT_INTRANGE("opengl-vsync-fences", opts.vsync_fences, 0, 0, NUM_VSYNC_FENCES), |