diff options
| author | Léo Lam <leo@leolam.fr> | 2022-01-01 02:45:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-01 02:45:10 +0100 |
| commit | 0a62ba9beb6baedb312cc18477a42a3a84fc4bd5 (patch) | |
| tree | 82845753b83bf5d32263424798b6671af590e749 /Source/Core/VideoBackends/Vulkan/VulkanContext.cpp | |
| parent | 9a61514073a95f378f705873921596e85e625f74 (diff) | |
| parent | 9ff7f80aa0a8e793ebf4772c53208ca8cfb89609 (diff) | |
Merge pull request #10320 from OatmealDome/macos-headless
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; } |
