mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2026-04-27 12:51:52 +00:00
refactor(cleanup): try to open libvulkan.so as well
This commit is contained in:
parent
0a0c07e183
commit
a3bbe7a5a2
1 changed files with 1 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ namespace {
|
||||||
if (handle) return handle;
|
if (handle) return handle;
|
||||||
|
|
||||||
handle = dlopen("libvulkan.so.1", RTLD_NOW | RTLD_LOCAL);
|
handle = dlopen("libvulkan.so.1", RTLD_NOW | RTLD_LOCAL);
|
||||||
|
if (!handle) handle = dlopen("libvulkan.so", RTLD_NOW | RTLD_LOCAL);
|
||||||
if (!handle)
|
if (!handle)
|
||||||
throw ls::vulkan_error("failed to load libvulkan.so.1");
|
throw ls::vulkan_error("failed to load libvulkan.so.1");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue