From 4462c56349432774412636a4663696468cb87fb1 Mon Sep 17 00:00:00 2001 From: rogmatic <89747244+rogmatic@users.noreply.github.com> Date: Sat, 17 Dec 2022 21:02:48 -0700 Subject: [PATCH] Fix graphics/present queue assignment Fixed SwapchainBuilder second constructor, which had 'info.graphics_queue_index = present.value()' and 'info.present_queue_index = graphics.value()'. --- src/VkBootstrap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VkBootstrap.cpp b/src/VkBootstrap.cpp index 3900fa1..adda443 100644 --- a/src/VkBootstrap.cpp +++ b/src/VkBootstrap.cpp @@ -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,