summaryrefslogtreecommitdiffstats
path: root/video/out/gl_common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-19 20:29:31 +0100
committerwm4 <wm4@nowhere>2014-12-19 20:29:31 +0100
commitd31e5842929c98913fab0546b984ec4e153b2386 (patch)
tree73cee4ad1764d2ca031bbd240b9c06dbb6824fb9 /video/out/gl_common.h
parentb7277d25e54757b9cb57ac4727776b7aa5fc59ec (diff)
downloadmpv-d31e5842929c98913fab0546b984ec4e153b2386.tar.bz2
mpv-d31e5842929c98913fab0546b984ec4e153b2386.tar.xz
vo_opengl, x11: add ES context creation via GLX
Apparently GLX can do this, so using EGL is not strictly required. This code tries to create an ES context if creating a desktop GL context fails. Also, a "x11es" backend for forcing ES (instead of desktop GL) is added, mostly for testing and debugging.
Diffstat (limited to 'video/out/gl_common.h')
-rw-r--r--video/out/gl_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gl_common.h b/video/out/gl_common.h
index f70614972a..ac9efe5c41 100644
--- a/video/out/gl_common.h
+++ b/video/out/gl_common.h
@@ -155,6 +155,7 @@ int mpgl_validate_backend_opt(struct mp_log *log, const struct m_option *opt,
void mpgl_set_backend_cocoa(MPGLContext *ctx);
void mpgl_set_backend_w32(MPGLContext *ctx);
void mpgl_set_backend_x11(MPGLContext *ctx);
+void mpgl_set_backend_x11es(MPGLContext *ctx);
void mpgl_set_backend_x11egl(MPGLContext *ctx);
void mpgl_set_backend_x11egles(MPGLContext *ctx);
void mpgl_set_backend_wayland(MPGLContext *ctx);