- Fix inverted check in last commit
This commit is contained in:
parent
d3dacfc2cb
commit
2cbd1c4736
1 changed files with 1 additions and 1 deletions
|
|
@ -428,7 +428,7 @@ std::vector<VulkanPhysicalDevice> VulkanDevice::GetPhysicalDevices(VkInstance in
|
|||
{
|
||||
uint32_t deviceCount = 0;
|
||||
VkResult result = vkEnumeratePhysicalDevices(instance, &deviceCount, nullptr);
|
||||
if (result != VK_ERROR_INITIALIZATION_FAILED) // Some drivers return this when a card does not support vulkan
|
||||
if (result == VK_ERROR_INITIALIZATION_FAILED) // Some drivers return this when a card does not support vulkan
|
||||
return {};
|
||||
if (result != VK_SUCCESS)
|
||||
I_Error("vkEnumeratePhysicalDevices failed");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue