From 79841d13e2bde59cead9fb83f8f8f2cf33ae3240 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 11 Jul 2020 03:29:04 +1000 Subject: [PATCH] dep/glad: Work around missing EGL_CAST on ARM drivers --- dep/glad/include/glad_egl.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dep/glad/include/glad_egl.h b/dep/glad/include/glad_egl.h index 741f0a536..e9ef8a7be 100644 --- a/dep/glad/include/glad_egl.h +++ b/dep/glad/include/glad_egl.h @@ -191,6 +191,15 @@ #define GLAPI extern #endif +// ARM drivers are missing EGL_CAST... +#ifndef EGL_CAST +#ifdef __cplusplus +#define EGL_CAST(type, value) static_cast(value) +#else +#define EGL_CAST(type, value) ((type) (value)) +#endif +#endif + #ifdef __cplusplus extern "C" { #endif