diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c index 86502549b6..72ad999c5d 100644 --- a/src/video/SDL_egl.c +++ b/src/video/SDL_egl.c @@ -51,7 +51,12 @@ #define EGL_COLOR_COMPONENT_TYPE_EXT 0x3339 #define EGL_COLOR_COMPONENT_TYPE_FIXED_EXT 0x333A #define EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT 0x333B -#endif +#endif // EGL_EXT_pixel_format_float + +#ifndef EGL_EXT_platform_device +#define EGL_EXT_platform_device 1 +#define EGL_PLATFORM_DEVICE_EXT 0x313F +#endif // EGL_EXT_platform_device #ifndef EGL_EXT_present_opaque #define EGL_EXT_present_opaque 1 @@ -111,13 +116,6 @@ #include #endif -/** 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_OPENGL typedef void (APIENTRY* PFNGLGETINTEGERVPROC) (GLenum pname, GLint * params); #endif