centralize android ifdefs

This commit is contained in:
Dane Springmeyer
2014-11-02 22:55:23 -05:00
parent 6eafca7874
commit 490a4bb17f
3 changed files with 6 additions and 8 deletions

View File

@@ -36,8 +36,10 @@
#error Unsupported Apple platform
#endif
#elif __ANDROID__
#define GL_GLEXT_PROTOTYPES
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#define GL_DEPTH24_STENCIL8 GL_DEPTH24_STENCIL8_OES
#else
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>