hc
2023-05-26 a23f51ed7a39e452c1037343a84d7db1ca2c5bd7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From 1c02e625ae69b0e50c95ba6f19f4015b3201e093 Mon Sep 17 00:00:00 2001
From: Jeffy Chen <jeffy.chen@rock-chips.com>
Date: Mon, 17 Sep 2018 16:32:41 +0800
Subject: [PATCH 2/3] bgfx: khronos: eglplatform.h: Sync mesa's
 MESA_EGL_NO_X11_HEADERS
 
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---
 3rdparty/bgfx/3rdparty/khronos/EGL/eglplatform.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
 
diff --git a/3rdparty/bgfx/3rdparty/khronos/EGL/eglplatform.h b/3rdparty/bgfx/3rdparty/khronos/EGL/eglplatform.h
index 3ab8844f09..a481f3cf71 100644
--- a/3rdparty/bgfx/3rdparty/khronos/EGL/eglplatform.h
+++ b/3rdparty/bgfx/3rdparty/khronos/EGL/eglplatform.h
@@ -95,6 +95,14 @@ typedef void*                           EGLNativeDisplayType;
 
 #elif defined(__unix__)
 
+#if defined(MESA_EGL_NO_X11_HEADERS)
+
+typedef void            *EGLNativeDisplayType;
+typedef khronos_uintptr_t EGLNativePixmapType;
+typedef khronos_uintptr_t EGLNativeWindowType;
+
+#else
+
 /* X11 (tentative)  */
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
@@ -103,6 +111,8 @@ typedef Display *EGLNativeDisplayType;
 typedef Pixmap   EGLNativePixmapType;
 typedef Window   EGLNativeWindowType;
 
+#endif /* MESA_EGL_NO_X11_HEADERS */
+
 #else
 #error "Platform not recognized"
 #endif
-- 
2.11.0