Skip to content

Commit e41a0c9

Browse files
authored
fix for running gles2 with sdl on desktop (#3542)
1 parent 25c6c12 commit e41a0c9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/platforms/rcore_desktop_sdl.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@
4949
**********************************************************************************************/
5050

5151
#include "SDL.h" // SDL base library (window/rendered, input, timming... functionality)
52+
#ifdef GRAPHICS_API_OPENGL_ES2
53+
// I suspect that the gles2 version of the SDL header should be used
54+
// but the compilation fails if we do. Not including anything appears
55+
// to work fine.
56+
//#include "SDL_opengles2.h"
57+
#else
5258
#include "SDL_opengl.h" // SDL OpenGL functionality (if required, instead of internal renderer)
59+
#endif
5360

5461
//----------------------------------------------------------------------------------
5562
// Types and Structures Definition

0 commit comments

Comments
 (0)