mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 04:08:32 +09:00
25 lines
556 B
C++
25 lines
556 B
C++
//
|
|
// Created by BZLZHH on 2025/3/15.
|
|
//
|
|
|
|
#include "LookUp.h"
|
|
|
|
#include "../../../../Includes.h"
|
|
|
|
namespace MG_GL::GLX {
|
|
void* GetProcAddress(const char *name) {
|
|
MG_Util::Debug::LogD("glXGetProcAddress(\"%s\")", name);
|
|
void* proc = dlsym(RTLD_DEFAULT, (const char*)name);
|
|
|
|
if (!proc) {
|
|
MG_Util::Debug::LogW("Failed to get function: %s", (const char*)name);
|
|
return nullptr;
|
|
}
|
|
|
|
return proc;
|
|
}
|
|
|
|
void* GetProcAddressARB(const char *name) {
|
|
return GetProcAddress(name);
|
|
}
|
|
} |