summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-13 15:38:51 +0200
committerwm4 <wm4@nowhere>2016-09-13 18:03:43 +0200
commit6dc9280b580835d37fa8a8664b6bc142254ce1a1 (patch)
treed778fa0999b0654f9e4263c5ece43aa44863c9e0 /video/out/opengl/context.h
parent3905c46f9a0f86b7e5fc40e7408cda1f695d4b57 (diff)
downloadmpv-6dc9280b580835d37fa8a8664b6bc142254ce1a1.tar.bz2
mpv-6dc9280b580835d37fa8a8664b6bc142254ce1a1.tar.xz
vo_opengl: factor some EGL context creation code
Add a function to egl_helpers.c for creating an EGL context and make context_x11egl.c use it. This is meant to be generic, and should work with other windowing APIs as well. The other EGL-using code in mpv can be switched to it.
Diffstat (limited to 'video/out/opengl/context.h')
-rw-r--r--video/out/opengl/context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/context.h b/video/out/opengl/context.h
index 505c51168a..d0588ddbd9 100644
--- a/video/out/opengl/context.h
+++ b/video/out/opengl/context.h
@@ -33,6 +33,7 @@ enum {
VOFLAG_ALPHA = 1 << 3, // Hint to request alpha framebuffer
VOFLAG_SW = 1 << 4, // Hint to accept a software GL renderer
VOFLAG_ANGLE_DCOMP = 1 << 5, // Whether DirectComposition is allowed
+ VOFLAG_PROBING = 1 << 6, // The backend is being auto-probed.
};
extern const int mpgl_preferred_gl_versions[];