mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58:31 +09:00
[Chore] (buildsystem): fix compilation and linking on Windows when building 3rdparty from source
This commit is contained in:
@@ -5,8 +5,11 @@ namespace MG_Impl::GLXImpl {
|
||||
|
||||
void* GetProcAddress(const char* name) {
|
||||
MGLOG_D("glXGetProcAddress(\"%s\")", name);
|
||||
#ifndef WIN32
|
||||
void* proc = dlsym(RTLD_DEFAULT, (const char*)name);
|
||||
|
||||
#else
|
||||
void* proc = NULL;
|
||||
#endif
|
||||
if (!proc) {
|
||||
MGLOG_W("Failed to get function: %s", (const char*)name);
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user