summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-11-14 20:35:27 -0500
committerrealtradam <[email protected]>2023-11-14 20:35:27 -0500
commita1c980489bbbbb73f1e93fe28fb20b84aae69d46 (patch)
tree838c63e93e21b4f8bd6301288c3886f76414421f
parentefc0fed9ce23406658fa0c8e4a4e934073a1d62f (diff)
downloadraylib-a1c980489bbbbb73f1e93fe28fb20b84aae69d46.tar.gz
raylib-a1c980489bbbbb73f1e93fe28fb20b84aae69d46.zip
fix for running gles2 with sdl on desktopsdl-gles-fix
-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