mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 15:59:23 +01:00
VulkanContext: Ensure present queue family is valid before incrementing queueCreateInfoCount
This commit is contained in:
parent
2ab331dcdf
commit
9ff7f80aa0
@ -628,7 +628,8 @@ bool VulkanContext::CreateDevice(VkSurfaceKHR surface, bool enable_validation_la
|
|||||||
}};
|
}};
|
||||||
|
|
||||||
device_info.queueCreateInfoCount = 1;
|
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;
|
device_info.queueCreateInfoCount = 2;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user