Skip to content

Commit

Permalink
dep/glad: Work around missing EGL_CAST on ARM drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Jul 10, 2020
1 parent 86c6be4 commit 79841d1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dep/glad/include/glad_egl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<type>(value)
#else
#define EGL_CAST(type, value) ((type) (value))
#endif
#endif

#ifdef __cplusplus
extern "C" {
#endif
Expand Down

0 comments on commit 79841d1

Please sign in to comment.