mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[dxvk] Throw DxvkError if we failed to load vulkan library
This commit is contained in:
parent
286ab017da
commit
86efa46fcf
@ -33,6 +33,8 @@ namespace dxvk {
|
|||||||
provider->initInstanceExtensions();
|
provider->initInstanceExtensions();
|
||||||
|
|
||||||
m_vkl = new vk::LibraryFn();
|
m_vkl = new vk::LibraryFn();
|
||||||
|
if (!m_vkl->valid())
|
||||||
|
throw DxvkError("Failed to load vulkan-1 library.");
|
||||||
m_vki = new vk::InstanceFn(m_vkl, true, this->createInstance());
|
m_vki = new vk::InstanceFn(m_vkl, true, this->createInstance());
|
||||||
|
|
||||||
m_adapters = this->queryAdapters();
|
m_adapters = this->queryAdapters();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user