mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
Oops.
This commit is contained in:
1 parent
a175af1cf4
commit
996d0e9508
1 file changed
+6
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user