Files
MobileGL/MobileGL/MG_Impl/GLXImpl/LookUp/LookUp.cpp
T

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);
}
}