mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 02:38:52 -05:00
Simplify glad
This commit is contained in:
parent
219e697dd9
commit
9ea5291c48
8
deps/glad.c
vendored
8
deps/glad.c
vendored
|
@ -6,10 +6,8 @@
|
||||||
struct gladGLversionStruct GLVersion;
|
struct gladGLversionStruct GLVersion;
|
||||||
|
|
||||||
static int has_ext(const char *ext) {
|
static int has_ext(const char *ext) {
|
||||||
#if defined(GL_ES_VERSION_3_0)
|
#if defined(GL_VERSION_3_0) || defined(GL_ES_VERSION_3_0)
|
||||||
if(!GLAD_GL_ES_VERSION_3_0) {
|
if(glGetStringi == NULL) {
|
||||||
#elif defined(GL_VERSION_3_0)
|
|
||||||
if(!GLAD_GL_VERSION_3_0) {
|
|
||||||
#endif
|
#endif
|
||||||
const char *extensions;
|
const char *extensions;
|
||||||
const char *loc;
|
const char *loc;
|
||||||
|
@ -32,7 +30,7 @@ static int has_ext(const char *ext) {
|
||||||
}
|
}
|
||||||
extensions = terminator;
|
extensions = terminator;
|
||||||
}
|
}
|
||||||
#if defined(GL_ES_VERSION_3_0) || defined(GL_VERSION_3_0)
|
#if defined(GL_VERSION_3_0) || defined(GL_ES_VERSION_3_0)
|
||||||
} else {
|
} else {
|
||||||
GLint num_exts, index;
|
GLint num_exts, index;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user