use SDL_opengles2.h only when USE_GLES is defined

This commit is contained in:
fgsfds 2020-06-10 01:01:34 +03:00
parent fca5ed8846
commit 457189bb13
1 changed files with 3 additions and 3 deletions

View File

@ -25,10 +25,10 @@
#include <SDL2/SDL.h>
#define GL_GLEXT_PROTOTYPES 1
#ifdef OSX_BUILD
#include <SDL2/SDL_opengl.h>
#else
#ifdef USE_GLES
#include <SDL2/SDL_opengles2.h>
#else
#include <SDL2/SDL_opengl.h>
#endif
#endif