From 445f55af925e26bcb4813db9a2b55994fb04aaaf Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Mon, 25 Aug 2025 20:08:42 +0800 Subject: [PATCH] [Fix]: guard against dlsym --- MobileGL/MG_Impl/EGLImpl/Temporary/TemporaryEGLImpl.cpp | 2 +- MobileGL/MG_Impl/GLXImpl/LookUp/LookUp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MobileGL/MG_Impl/EGLImpl/Temporary/TemporaryEGLImpl.cpp b/MobileGL/MG_Impl/EGLImpl/Temporary/TemporaryEGLImpl.cpp index 28f9444e..b53a80c0 100644 --- a/MobileGL/MG_Impl/EGLImpl/Temporary/TemporaryEGLImpl.cpp +++ b/MobileGL/MG_Impl/EGLImpl/Temporary/TemporaryEGLImpl.cpp @@ -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; diff --git a/MobileGL/MG_Impl/GLXImpl/LookUp/LookUp.cpp b/MobileGL/MG_Impl/GLXImpl/LookUp/LookUp.cpp index a09a111b..48145548 100644 --- a/MobileGL/MG_Impl/GLXImpl/LookUp/LookUp.cpp +++ b/MobileGL/MG_Impl/GLXImpl/LookUp/LookUp.cpp @@ -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;