From ee6d504ae937ae911ddaa5a85330a52e79782a3d Mon Sep 17 00:00:00 2001 From: Brandon Schaefer Date: Tue, 24 Sep 2019 17:49:53 -0400 Subject: [PATCH] offscreen: Define missing define on a older EGL for an EXT function which it wont have --- src/video/SDL_egl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c index f0858f3a19c9a..98bb400c019ae 100644 --- a/src/video/SDL_egl.c +++ b/src/video/SDL_egl.c @@ -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;