mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-10 21:28:32 +09:00
[Chore]: fix compilation on Windows
This commit is contained in:
@@ -443,6 +443,7 @@ namespace MobileGL {
|
|||||||
static const char* EGLLibs[] = {"libEGL", nullptr};
|
static const char* EGLLibs[] = {"libEGL", nullptr};
|
||||||
|
|
||||||
void* OpenLib(const char** names, const char* override) {
|
void* OpenLib(const char** names, const char* override) {
|
||||||
|
#ifndef __WIN32
|
||||||
void* lib = nullptr;
|
void* lib = nullptr;
|
||||||
|
|
||||||
char path_name[PATH_MAX + 1];
|
char path_name[PATH_MAX + 1];
|
||||||
@@ -464,6 +465,9 @@ namespace MobileGL {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return lib;
|
return lib;
|
||||||
|
#else
|
||||||
|
return nullptr;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void LoadLibs() {
|
void LoadLibs() {
|
||||||
@@ -473,7 +477,11 @@ namespace MobileGL {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void* ProcAddress(void* lib, const char* name) {
|
void* ProcAddress(void* lib, const char* name) {
|
||||||
|
#ifndef __WIN32
|
||||||
return dlsym(lib, name);
|
return dlsym(lib, name);
|
||||||
|
#else
|
||||||
|
return nullptr;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void InitGLESCapabilities() {
|
void InitGLESCapabilities() {
|
||||||
|
|||||||
Reference in New Issue
Block a user