[Fix]: guard against dlsym

This commit is contained in:
2025-08-25 20:08:42 +08:00
parent 701e93f26d
commit 445f55af92
2 changed files with 2 additions and 2 deletions
@@ -102,7 +102,7 @@ namespace MobileGL {
__eglMustCastToProperFunctionPointerType GetProcAddress(const char* name) {
MGLOG_D("eglGetProcAddress(%s)", name);
#ifndef WIN32
#if !defined(WIN32) && !defined(__APPLE__)
void* proc = dlsym(RTLD_DEFAULT, (const char*)name);
#else
void* proc = NULL;
+1 -1
View File
@@ -5,7 +5,7 @@ namespace MG_Impl::GLXImpl {
void* GetProcAddress(const char* name) {
MGLOG_D("glXGetProcAddress(\"%s\")", name);
#ifndef WIN32
#if !defined(WIN32) && !defined(__APPLE__)
void* proc = dlsym(RTLD_DEFAULT, (const char*)name);
#else
void* proc = NULL;