Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/glad/patches/0002-revert-egl_static-removal.patch
59211 views
1
diff --git a/thirdparty/glad/gl.c b/thirdparty/glad/gl.c
2
index 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);
16
17