mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Oops.
This commit is contained in:
parent
a175af1cf4
commit
996d0e9508
1 changed files with 6 additions and 2 deletions
|
@ -202,12 +202,16 @@ bool VulkanMayBeAvailable() {
|
|||
#ifndef _WIN32
|
||||
void *lib = dlopen("libvulkan.so", RTLD_NOW | RTLD_LOCAL);
|
||||
available = lib != nullptr;
|
||||
dlclose(lib);
|
||||
if (lib) {
|
||||
dlclose(lib);
|
||||
}
|
||||
#else
|
||||
// LoadLibrary etc
|
||||
HINSTANCE lib = LoadLibrary(L"vulkan-1.dll");
|
||||
available = lib != 0;
|
||||
FreeLibrary(lib);
|
||||
if (lib) {
|
||||
FreeLibrary(lib);
|
||||
}
|
||||
#endif
|
||||
return available;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue