summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-03-20 04:57:51 +0100
committerwm4 <wm4@nowhere>2017-03-20 04:57:51 +0100
commit7e4a73c8e4ed771b914f49a2de14b830469a470a (patch)
tree204364cf03d8d02ffe85cba1673c5e033006419c /video/out/opengl/context.h
parentf8861f681f5b18ebb9c32cb6e4909766f92b9263 (diff)
downloadmpv-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/context.h')
-rw-r--r--video/out/opengl/context.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/opengl/context.h b/video/out/opengl/context.h
index ecb9d9c033..92b9da0432 100644
--- a/video/out/opengl/context.h
+++ b/video/out/opengl/context.h
@@ -27,12 +27,13 @@
#include "common.h"
enum {
- VOFLAG_GLES = 1 << 0, // Hint to create a GLES2 context
+ VOFLAG_GLES = 1 << 0, // Hint to create a GLES context
VOFLAG_NO_GLES = 1 << 1, // Hint to create a desktop GL context
VOFLAG_GL_DEBUG = 1 << 2, // Hint to request debug OpenGL context
VOFLAG_ALPHA = 1 << 3, // Hint to request alpha framebuffer
VOFLAG_SW = 1 << 4, // Hint to accept a software GL renderer
VOFLAG_PROBING = 1 << 6, // The backend is being auto-probed.
+ VOFLAG_GLES2 = 1 << 7, // Hint for GLESv2 (needs VOFLAG_GLES)
};
extern const int mpgl_preferred_gl_versions[];