diff options
| author | OatmealDome <julian@oatmealdome.me> | 2021-12-28 21:18:47 -0500 |
|---|---|---|
| committer | OatmealDome <julian@oatmealdome.me> | 2021-12-28 21:18:47 -0500 |
| commit | 9ff7f80aa0a8e793ebf4772c53208ca8cfb89609 (patch) | |
| tree | 4bbc2130a1994aebfc77c105f47c00d67cbdd5ea /Source/Core/VideoBackends/Vulkan/VulkanContext.cpp | |
| parent | 2ab331dcdffcf22dab5297fbe41ab32fbbfd638a (diff) | |
VulkanContext: Ensure present queue family is valid before incrementing queueCreateInfoCount
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VulkanContext.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/VulkanContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp index ead13df547..40e5429956 100644 --- a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp +++ b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp @@ -628,7 +628,8 @@ bool VulkanContext::CreateDevice(VkSurfaceKHR surface, bool enable_validation_la }}; device_info.queueCreateInfoCount = 1; - if (m_graphics_queue_family_index != m_present_queue_family_index) + if (m_graphics_queue_family_index != m_present_queue_family_index && + m_present_queue_family_index != queue_family_count) { device_info.queueCreateInfoCount = 2; } |
