From e41a0c9721a38c81a1499ae499b746bd05f9de2e Mon Sep 17 00:00:00 2001 From: _Tradam Date: Sat, 18 Nov 2023 14:03:13 -0500 Subject: [PATCH] fix for running gles2 with sdl on desktop (#3542) --- src/platforms/rcore_desktop_sdl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c index 96e55702..7836828f 100644 --- a/src/platforms/rcore_desktop_sdl.c +++ b/src/platforms/rcore_desktop_sdl.c @@ -49,7 +49,14 @@ **********************************************************************************************/ #include "SDL.h" // SDL base library (window/rendered, input, timming... functionality) +#ifdef GRAPHICS_API_OPENGL_ES2 +// I suspect that the gles2 version of the SDL header should be used +// but the compilation fails if we do. Not including anything appears +// to work fine. +//#include "SDL_opengles2.h" +#else #include "SDL_opengl.h" // SDL OpenGL functionality (if required, instead of internal renderer) +#endif //---------------------------------------------------------------------------------- // Types and Structures Definition