mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[dxvk] don't try to fall back to Vulkan 1.0
Vulkan 1.1 came out in early 2018, everyone should be using a compatible driver and ICD loader these days.
This commit is contained in:
parent
eb37dfa8d2
commit
bafcaa0c07
@ -135,14 +135,8 @@ namespace dxvk {
|
||||
VkInstance result = VK_NULL_HANDLE;
|
||||
VkResult status = m_vkl->vkCreateInstance(&info, nullptr, &result);
|
||||
|
||||
if (status == VK_ERROR_INCOMPATIBLE_DRIVER) {
|
||||
Logger::warn("Failed to create Vulkan 1.1 instance, falling back to 1.0");
|
||||
appInfo.apiVersion = 0; /* some very old drivers may not accept 1.0 */
|
||||
status = m_vkl->vkCreateInstance(&info, nullptr, &result);
|
||||
}
|
||||
|
||||
if (status != VK_SUCCESS)
|
||||
throw DxvkError("DxvkInstance::createInstance: Failed to create Vulkan instance");
|
||||
throw DxvkError("DxvkInstance::createInstance: Failed to create Vulkan 1.1 instance");
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user