mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58:31 +09:00
[Fix]: guard against dlsym
This commit is contained in:
@@ -102,7 +102,7 @@ namespace MobileGL {
|
|||||||
|
|
||||||
__eglMustCastToProperFunctionPointerType GetProcAddress(const char* name) {
|
__eglMustCastToProperFunctionPointerType GetProcAddress(const char* name) {
|
||||||
MGLOG_D("eglGetProcAddress(%s)", name);
|
MGLOG_D("eglGetProcAddress(%s)", name);
|
||||||
#ifndef WIN32
|
#if !defined(WIN32) && !defined(__APPLE__)
|
||||||
void* proc = dlsym(RTLD_DEFAULT, (const char*)name);
|
void* proc = dlsym(RTLD_DEFAULT, (const char*)name);
|
||||||
#else
|
#else
|
||||||
void* proc = NULL;
|
void* proc = NULL;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ namespace MG_Impl::GLXImpl {
|
|||||||
|
|
||||||
void* GetProcAddress(const char* name) {
|
void* GetProcAddress(const char* name) {
|
||||||
MGLOG_D("glXGetProcAddress(\"%s\")", name);
|
MGLOG_D("glXGetProcAddress(\"%s\")", name);
|
||||||
#ifndef WIN32
|
#if !defined(WIN32) && !defined(__APPLE__)
|
||||||
void* proc = dlsym(RTLD_DEFAULT, (const char*)name);
|
void* proc = dlsym(RTLD_DEFAULT, (const char*)name);
|
||||||
#else
|
#else
|
||||||
void* proc = NULL;
|
void* proc = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user