SDL: Fix build for platforms with incomplete OpenGL headers
This commit is contained in:
parent
fe4aac9ada
commit
9c0950f76c
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue