mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 12:18:30 +09:00
19 lines
470 B
C++
19 lines
470 B
C++
#include "../../../Includes.h"
|
|
|
|
namespace MG_Impl::GLXImpl {
|
|
void* GetProcAddress(const char* name) {
|
|
MGLOG_D("glXGetProcAddress(\"%s\")", name);
|
|
void* proc = dlsym(RTLD_DEFAULT, (const char*)name);
|
|
|
|
if (!proc) {
|
|
MGLOG_W("Failed to get function: %s", (const char*)name);
|
|
return nullptr;
|
|
}
|
|
|
|
return proc;
|
|
}
|
|
|
|
void* GetProcAddressARB(const char* name) {
|
|
return GetProcAddress(name);
|
|
}
|
|
} |