diff options
author | Anton Kindestam <antonki@kth.se> | 2019-09-27 01:41:53 +0200 |
---|---|---|
committer | Anton Kindestam <antonki@kth.se> | 2019-09-27 20:01:15 +0200 |
commit | 22252432e26279ae06b60cef5943513e423da683 (patch) | |
tree | 34302930956f74c2a41dd4893f77307418759108 /video/out | |
parent | 95ca78b63e3a25b3ed3135fd5055ca77664f8faf (diff) | |
download | mpv-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.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/opengl/context_drm_egl.c | 8 |
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 |