summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Kindestam <antonki@kth.se>2019-09-27 01:41:53 +0200
committerAnton Kindestam <antonki@kth.se>2019-09-27 20:01:15 +0200
commit22252432e26279ae06b60cef5943513e423da683 (patch)
tree34302930956f74c2a41dd4893f77307418759108
parent95ca78b63e3a25b3ed3135fd5055ca77664f8faf (diff)
downloadmpv-22252432e26279ae06b60cef5943513e423da683.tar.bz2
mpv-22252432e26279ae06b60cef5943513e423da683.tar.xz
context_drm_egl: define EGL_PLATFORM_GBM_MESA, EGL_PLATFORM_GBM_KHR if not in system headers
To account for oddball setups where EGL_PLATFORM_GBM_MESA or EGL_PLATFORM_GBM_KHR might not be defined for whatever reason.
-rw-r--r--video/out/opengl/context_drm_egl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/video/out/opengl/context_drm_egl.c b/video/out/opengl/context_drm_egl.c
index dbcd1452c0..875a781fb6 100644
--- a/video/out/opengl/context_drm_egl.c
+++ b/video/out/opengl/context_drm_egl.c
@@ -37,6 +37,14 @@
#include "common.h"
#include "context.h"
+#ifndef EGL_PLATFORM_GBM_MESA
+#define EGL_PLATFORM_GBM_MESA 0x31D7
+#endif
+
+#ifndef EGL_PLATFORM_GBM_KHR
+#define EGL_PLATFORM_GBM_KHR 0x31D7
+#endif
+
#define USE_MASTER 0
struct framebuffer