Path: blob/master/thirdparty/glad/patches/0002-revert-egl_static-removal.patch
59211 views
diff --git a/thirdparty/glad/gl.c b/thirdparty/glad/gl.c1index d78c606dbd..0d4c77ed59 1006442--- a/thirdparty/glad/gl.c3+++ b/thirdparty/glad/gl.c4@@ -2614,6 +2614,10 @@ static GLADapiproc glad_dlsym_handle(void* handle, const char *name) {5typedef __eglMustCastToProperFunctionPointerType (GLAD_API_PTR *PFNEGLGETPROCADDRESSPROC)(const char *name);6#endif7extern __eglMustCastToProperFunctionPointerType emscripten_GetProcAddress(const char *name);8+#elif EGL_STATIC9+ typedef void (*__eglMustCastToProperFunctionPointerType)(void);10+ typedef __eglMustCastToProperFunctionPointerType (GLAD_API_PTR *PFNEGLGETPROCADDRESSPROC)(const char *name);11+ extern __eglMustCastToProperFunctionPointerType GLAD_API_PTR eglGetProcAddress(const char *name);12#elif defined(GLAD_GLES2_USE_SYSTEM_EGL)13#include <EGL/egl.h>14typedef __eglMustCastToProperFunctionPointerType (GLAD_API_PTR *PFNEGLGETPROCADDRESSPROC)(const char *name);151617