summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-27 21:20:46 +0200
committerwm4 <wm4@nowhere>2015-09-27 21:34:11 +0200
commit1fa674c109c05e082bf0fb43be064cbdabea3327 (patch)
tree9a4c109856a68c2795680f156aa394db5ba3ca2b /video/out/opengl/common.h
parent710872bc22c772d1ea8eb9a0383f5755dae08698 (diff)
downloadmpv-1fa674c109c05e082bf0fb43be064cbdabea3327.tar.bz2
mpv-1fa674c109c05e082bf0fb43be064cbdabea3327.tar.xz
vo_opengl: refactor EGL context information callback
Move the ugliness from x11egl.c to common.c, so that the ugliness doesn't have to be duplicated in wayland.c.
Diffstat (limited to 'video/out/opengl/common.h')
-rw-r--r--video/out/opengl/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/opengl/common.h b/video/out/opengl/common.h
index 0e3566d689..a7dfb65be1 100644
--- a/video/out/opengl/common.h
+++ b/video/out/opengl/common.h
@@ -115,6 +115,10 @@ typedef struct MPGLContext {
// Bit size of each component in the created framebuffer. 0 if unknown.
int depth_r, depth_g, depth_b;
+ // For hwdec_vaegl.c.
+ const char *native_display_type;
+ void *native_display;
+
// For free use by the mpgl_driver.
void *priv;