Skip to content

Commit

Permalink
offscreen: Define missing define on a older EGL for an EXT function w…
Browse files Browse the repository at this point in the history
…hich it wont have
  • Loading branch information
BrandonSchaefer committed Sep 24, 2019
1 parent 8a41948 commit ee6d504
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/video/SDL_egl.c
Expand Up @@ -82,6 +82,13 @@
#define DEFAULT_OGL_ES "libGLESv1_CM.so.1"
#endif /* SDL_VIDEO_DRIVER_RPI */

/** If we happen to not have this defined because of an older EGL version, just define it 0x0
as eglGetPlatformDisplayEXT will most likely be NULL if this is missing
*/
#ifndef EGL_PLATFORM_DEVICE_EXT
#define EGL_PLATFORM_DEVICE_EXT 0x0
#endif

#ifdef SDL_VIDEO_STATIC_ANGLE
#define LOAD_FUNC(NAME) \
_this->egl_data->NAME = (void *)NAME;
Expand Down

0 comments on commit ee6d504

Please sign in to comment.