diff options
| author | Ray <[email protected]> | 2023-11-20 23:21:04 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-20 23:21:04 +0100 |
| commit | 994c4f4bdf1f47f706447724b813c9304a66fb16 (patch) | |
| tree | 0aeb27905e7d0ebb6bc9920ce8794a0e004c9f94 /src | |
| parent | ce26e26177eb886c4fec16a51581f4611b8a069f (diff) | |
| download | raylib-994c4f4bdf1f47f706447724b813c9304a66fb16.tar.gz raylib-994c4f4bdf1f47f706447724b813c9304a66fb16.zip | |
Update rcore_desktop_sdl.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/platforms/rcore_desktop_sdl.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c index 7836828f..0d3b091f 100644 --- a/src/platforms/rcore_desktop_sdl.c +++ b/src/platforms/rcore_desktop_sdl.c @@ -48,14 +48,13 @@ * **********************************************************************************************/ -#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" +#include "SDL.h" // SDL base library (window/rendered, input, timming... functionality) + +#if defined(GRAPHICS_API_OPENGL_ES2) + // It seems it does not need to be included to work + //#include "SDL_opengles2.h" #else -#include "SDL_opengl.h" // SDL OpenGL functionality (if required, instead of internal renderer) + #include "SDL_opengl.h" // SDL OpenGL functionality (if required, instead of internal renderer) #endif //---------------------------------------------------------------------------------- |
