summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2023-11-20 23:21:04 +0100
committerGitHub <[email protected]>2023-11-20 23:21:04 +0100
commit994c4f4bdf1f47f706447724b813c9304a66fb16 (patch)
tree0aeb27905e7d0ebb6bc9920ce8794a0e004c9f94 /src
parentce26e26177eb886c4fec16a51581f4611b8a069f (diff)
downloadraylib-994c4f4bdf1f47f706447724b813c9304a66fb16.tar.gz
raylib-994c4f4bdf1f47f706447724b813c9304a66fb16.zip
Update rcore_desktop_sdl.c
Diffstat (limited to 'src')
-rw-r--r--src/platforms/rcore_desktop_sdl.c13
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
//----------------------------------------------------------------------------------