summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Palus <atler@pld-linux.org>2020-04-18 14:47:04 +0200
committerwm4 <1387750+wm4@users.noreply.github.com>2020-05-14 15:07:58 +0200
commitac1634360bb2fd5e852b4664ece2fe1cb30d97da (patch)
tree27b45448905050d7847a7b448ac2fa1f1e6046ce
parentfd8e856afecc567764926876739772e79ade028f (diff)
downloadmpv-ac1634360bb2fd5e852b4664ece2fe1cb30d97da.tar.bz2
mpv-ac1634360bb2fd5e852b4664ece2fe1cb30d97da.tar.xz
drm: add typedef for PFNEGLGETPLATFORMDISPLAYEXTPROC (#7314)
extension is not mandatory and is not provided on ie Raspberry Pi
-rw-r--r--video/out/opengl/context_drm_egl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/opengl/context_drm_egl.c b/video/out/opengl/context_drm_egl.c
index 3b5dac64da..86ce57122c 100644
--- a/video/out/opengl/context_drm_egl.c
+++ b/video/out/opengl/context_drm_egl.c
@@ -46,6 +46,11 @@
#define USE_MASTER 0
+#ifndef EGL_EXT_platform_base
+typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)
+ (EGLenum platform, void *native_display, const EGLint *attrib_list);
+#endif
+
struct framebuffer
{
int fd;