mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-17 17:11:19 +00:00
- 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;
|
uint32_t deviceCount = 0;
|
||||||
VkResult result = vkEnumeratePhysicalDevices(instance, &deviceCount, nullptr);
|
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 {};
|
return {};
|
||||||
if (result != VK_SUCCESS)
|
if (result != VK_SUCCESS)
|
||||||
I_Error("vkEnumeratePhysicalDevices failed");
|
I_Error("vkEnumeratePhysicalDevices failed");
|
||||||
|
|
Loading…
Reference in a new issue