[Fix] (MG_Impl/GetProcAddress, Exporting): properly get proc address, clear reliance on dlsym

This commit is contained in:
2026-01-17 09:19:38 +08:00
parent 97cbb35dbd
commit 80bb46cbb9
15 changed files with 2144 additions and 35 deletions
+1 -5
View File
@@ -12,11 +12,7 @@ namespace MG_Impl::GLXImpl {
void* GetProcAddress(const char* name) {
MGLOG_D("glXGetProcAddress(\"%s\")", name);
#if !defined(WIN32) && !defined(__APPLE__)
void* proc = dlsym(RTLD_DEFAULT, (const char*)name);
#else
void* proc = NULL;
#endif
void* proc = MobileGL::MG_Impl::GetProcAddress(name);
if (!proc) {
MGLOG_W("Failed to get function: %s", (const char*)name);
return nullptr;