offscreen: Define missing define on a older EGL for an EXT function which it wont have
authorBrandon Schaefer <brandon.schaefer@epicgames.com>
Tue, 24 Sep 2019 17:49:53 -0400
changeset 1309106109263e82a
parent 13090 0d7e642c5e28
child 13092 307068253f19
offscreen: Define missing define on a older EGL for an EXT function which it wont have
src/video/SDL_egl.c
     1.1 --- a/src/video/SDL_egl.c	Tue Sep 24 17:27:51 2019 -0400
     1.2 +++ b/src/video/SDL_egl.c	Tue Sep 24 17:49:53 2019 -0400
     1.3 @@ -82,6 +82,13 @@
     1.4  #define DEFAULT_OGL_ES "libGLESv1_CM.so.1"
     1.5  #endif /* SDL_VIDEO_DRIVER_RPI */
     1.6  
     1.7 +/** If we happen to not have this defined because of an older EGL version, just define it 0x0
     1.8 +    as eglGetPlatformDisplayEXT will most likely be NULL if this is missing
     1.9 +*/
    1.10 +#ifndef EGL_PLATFORM_DEVICE_EXT
    1.11 +#define EGL_PLATFORM_DEVICE_EXT 0x0
    1.12 +#endif
    1.13 +
    1.14  #ifdef SDL_VIDEO_STATIC_ANGLE
    1.15  #define LOAD_FUNC(NAME) \
    1.16  _this->egl_data->NAME = (void *)NAME;