summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-23 15:56:17 +0200
committerwm4 <wm4@nowhere>2015-10-23 15:56:17 +0200
commit0344abd67a98b0eada612d9d9f37f23a515532e5 (patch)
treef4b34717355c1f641972e012fa48394d46e4abf2
parent56fefde7e2ee0c31e9d4d39b5bd0ca8a5643ebe5 (diff)
downloadmpv-0344abd67a98b0eada612d9d9f37f23a515532e5.tar.bz2
mpv-0344abd67a98b0eada612d9d9f37f23a515532e5.tar.xz
vo_opengl: vaapi: fix compilation failure on older systems
Older systems have certain EGL extension definitions missing. We redefine them to make the build system easier, and because it's trivial. But we forgot to define the EGL_LINUX_DMA_BUF_EXT identifier. (I hope it's the only missing one.)
-rw-r--r--video/out/opengl/hwdec_vaegl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/opengl/hwdec_vaegl.c b/video/out/opengl/hwdec_vaegl.c
index dccd13a5a7..efc09c28ba 100644
--- a/video/out/opengl/hwdec_vaegl.c
+++ b/video/out/opengl/hwdec_vaegl.c
@@ -39,7 +39,8 @@ typedef void* GLeglImageOES;
typedef void *EGLImageKHR;
#endif
-#ifndef EGL_LINUX_DRM_FOURCC_EXT
+#ifndef EGL_LINUX_DMA_BUF_EXT
+#define EGL_LINUX_DMA_BUF_EXT 0x3270
#define EGL_LINUX_DRM_FOURCC_EXT 0x3271
#define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
#define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273