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