From 53767ca03c4fa31cb85d475e2225f1f310a391c8 Mon Sep 17 00:00:00 2001 From: Jeffy Chen Date: Mon, 17 Sep 2018 16:32:41 +0800 Subject: [PATCH 2/4] bgfx: khronos: eglplatform.h: Sync mesa's MESA_EGL_NO_X11_HEADERS Signed-off-by: Jeffy Chen --- 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 #include @@ -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