fix for running gles2 with sdl on desktop (#3542)
This commit is contained in:
parent
25c6c12150
commit
e41a0c9721
1 changed files with 7 additions and 0 deletions
|
@ -49,7 +49,14 @@
|
||||||
**********************************************************************************************/
|
**********************************************************************************************/
|
||||||
|
|
||||||
#include "SDL.h" // SDL base library (window/rendered, input, timming... functionality)
|
#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)
|
#include "SDL_opengl.h" // SDL OpenGL functionality (if required, instead of internal renderer)
|
||||||
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Types and Structures Definition
|
// Types and Structures Definition
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue