Remove GLVersion from GLAD header and make it static

Bug: chromium:877147
Change-Id: I9635fdf977dd13658a957bd247e453f3b6511dca
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/5520
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
Austin Eng 2019-03-11 21:20:42 +00:00 committed by Commit Bot service account
parent 1e1c13ed87
commit 8d79f78c78
2 changed files with 2 additions and 4 deletions

View File

@ -81,8 +81,6 @@ typedef void* (* GLADloadproc)(const char *name);
# endif # endif
#endif #endif
extern struct gladGLversionStruct GLVersion;
GLAPI int gladLoadGL(void); GLAPI int gladLoadGL(void);
GLAPI int gladLoadGLLoader(GLADloadproc); GLAPI int gladLoadGLLoader(GLADloadproc);

View File

@ -152,7 +152,7 @@ int gladLoadGL(void) {
return status; 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) #if defined(GL_ES_VERSION_3_0) || defined(GL_VERSION_3_0)
#define _GLAD_IS_SOME_NEW_VERSION 1 #define _GLAD_IS_SOME_NEW_VERSION 1