diff options
author | wm4 <wm4@nowhere> | 2014-12-19 20:29:31 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-19 20:29:31 +0100 |
commit | d31e5842929c98913fab0546b984ec4e153b2386 (patch) | |
tree | 73cee4ad1764d2ca031bbd240b9c06dbb6824fb9 /video/out/gl_header_fixes.h | |
parent | b7277d25e54757b9cb57ac4727776b7aa5fc59ec (diff) | |
download | mpv-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_header_fixes.h')
-rw-r--r-- | video/out/gl_header_fixes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/gl_header_fixes.h b/video/out/gl_header_fixes.h index 63ace2b1cc..2cc3abd504 100644 --- a/video/out/gl_header_fixes.h +++ b/video/out/gl_header_fixes.h @@ -292,6 +292,10 @@ #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 #endif +// GLX_EXT_create_context_es2_profile +#ifndef GLX_CONTEXT_ES2_PROFILE_BIT_EXT +#define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 +#endif #undef MP_GET_GLX_WORKAROUNDS |