diff --git a/third_party/glad/include/glad/glad.h b/third_party/glad/include/glad/glad.h index 2825675cb4..db5272d27b 100644 --- a/third_party/glad/include/glad/glad.h +++ b/third_party/glad/include/glad/glad.h @@ -81,8 +81,6 @@ typedef void* (* GLADloadproc)(const char *name); # endif #endif -extern struct gladGLversionStruct GLVersion; - GLAPI int gladLoadGL(void); GLAPI int gladLoadGLLoader(GLADloadproc); diff --git a/third_party/glad/src/glad.c b/third_party/glad/src/glad.c index 60e128fd0a..90b440f67e 100644 --- a/third_party/glad/src/glad.c +++ b/third_party/glad/src/glad.c @@ -7,7 +7,7 @@ APIs: gl=4.5 Profile: core Extensions: - + Loader: True Local files: False Omit khrplatform: False @@ -152,7 +152,7 @@ int gladLoadGL(void) { return status; } -struct gladGLversionStruct GLVersion = { 0, 0 }; +static struct gladGLversionStruct GLVersion = { 0, 0 }; #if defined(GL_ES_VERSION_3_0) || defined(GL_VERSION_3_0) #define _GLAD_IS_SOME_NEW_VERSION 1