SDL: Fix build for platforms with incomplete OpenGL headers

This commit is contained in:
Bastien Bouclet 2016-06-12 20:08:05 +02:00
parent fe4aac9ada
commit 9c0950f76c
2 changed files with 6 additions and 6 deletions

View file

@ -46,11 +46,6 @@
#define GL_UNPACK_ROW_LENGTH 0x0CF2
#endif
#if !defined(GL_MAX_SAMPLES)
// The Android SDK does not declare GL_MAX_SAMPLES
#define GL_MAX_SAMPLES 0x8D57
#endif
#elif defined(USE_GLEW)
#include <GL/glew.h>
#elif defined(SDL_BACKEND) && defined(USE_OPENGL)
@ -60,3 +55,8 @@
#endif
#endif
#if !defined(GL_MAX_SAMPLES)
// The Android SDK and SDL1 don't declare GL_MAX_SAMPLES
#define GL_MAX_SAMPLES 0x8D57
#endif