BACKENDS: Replace GLEW with GLAD, part of PR #3463
This commit is contained in:
parent
43d87cb029
commit
21b0d6ded1
30 changed files with 8604 additions and 597 deletions
|
@ -45,17 +45,14 @@
|
|||
#define GL_UNPACK_ROW_LENGTH 0x0CF2
|
||||
#endif
|
||||
|
||||
#elif defined(USE_GLEW)
|
||||
#include <GL/glew.h>
|
||||
#elif defined(SDL_BACKEND) && defined(USE_OPENGL_GAME)
|
||||
#include <SDL_opengl.h>
|
||||
#elif defined(USE_OPENGL_GAME)
|
||||
#include <GL/gl.h>
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#if !defined(GL_MAX_SAMPLES)
|
||||
// The Android SDK and SDL1 don't declare GL_MAX_SAMPLES
|
||||
#define GL_MAX_SAMPLES 0x8D57
|
||||
#endif
|
||||
|
||||
#else
|
||||
#define USE_GLAD
|
||||
#include "graphics/opengl/glad.h"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue