summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
author_Tradam <[email protected]>2023-11-18 14:03:13 -0500
committerGitHub <[email protected]>2023-11-18 20:03:13 +0100
commite41a0c9721a38c81a1499ae499b746bd05f9de2e (patch)
tree54874e5969bfa152ad1eb0aeaf01f4f48a31d5e0 /src
parent25c6c12150d6f0aeea83d55d1a0f16e12a3effd3 (diff)
downloadraylib-e41a0c9721a38c81a1499ae499b746bd05f9de2e.tar.gz
raylib-e41a0c9721a38c81a1499ae499b746bd05f9de2e.zip
fix for running gles2 with sdl on desktop (#3542)
Diffstat (limited to 'src')
-rw-r--r--src/platforms/rcore_desktop_sdl.c7
1 files changed, 7 insertions, 0 deletions
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