mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-10 02:41:47 +00:00
Fix graphics/present queue assignment
Fixed SwapchainBuilder second constructor, which had 'info.graphics_queue_index = present.value()' and 'info.present_queue_index = graphics.value()'.
This commit is contained in:
parent
b4b177170e
commit
4462c56349
@ -1716,8 +1716,8 @@ SwapchainBuilder::SwapchainBuilder(Device const& device, VkSurfaceKHR const surf
|
||||
auto present = temp_device.get_queue_index(QueueType::present);
|
||||
auto graphics = temp_device.get_queue_index(QueueType::graphics);
|
||||
assert(graphics.has_value() && present.has_value() && "Graphics and Present queue indexes must be valid");
|
||||
info.graphics_queue_index = present.value();
|
||||
info.present_queue_index = graphics.value();
|
||||
info.graphics_queue_index = graphics.value();
|
||||
info.present_queue_index = present.value();
|
||||
info.allocation_callbacks = device.allocation_callbacks;
|
||||
}
|
||||
SwapchainBuilder::SwapchainBuilder(VkPhysicalDevice const physical_device,
|
||||
|
Loading…
Reference in New Issue
Block a user