Skip to content
0.2.0-dev Download ZIP
15 lines ·933 B Raw
1diff --git a/thirdparty/glad/gl.c b/thirdparty/glad/gl.c
2index d78c606dbd..0d4c77ed59 100644
3--- a/thirdparty/glad/gl.c
4+++ b/thirdparty/glad/gl.c
5@@ -2614,6 +2614,10 @@ static GLADapiproc glad_dlsym_handle(void* handle, const char *name) {
6 typedef __eglMustCastToProperFunctionPointerType (GLAD_API_PTR *PFNEGLGETPROCADDRESSPROC)(const char *name);
7 #endif
8 extern __eglMustCastToProperFunctionPointerType emscripten_GetProcAddress(const char *name);
9+#elif EGL_STATIC
10+ typedef void (*__eglMustCastToProperFunctionPointerType)(void);
11+ typedef __eglMustCastToProperFunctionPointerType (GLAD_API_PTR *PFNEGLGETPROCADDRESSPROC)(const char *name);
12+ extern __eglMustCastToProperFunctionPointerType GLAD_API_PTR eglGetProcAddress(const char *name);
13 #elif defined(GLAD_GLES2_USE_SYSTEM_EGL)
14 #include <EGL/egl.h>
15 typedef __eglMustCastToProperFunctionPointerType (GLAD_API_PTR *PFNEGLGETPROCADDRESSPROC)(const char *name);