SwapchainBuilder::use_default_min_image_count(): fix default parameter specified in function definition

This commit is contained in:
Yoan 2022-05-16 23:34:30 +02:00 committed by Charles Giessen
parent 5ac2b21dfe
commit f528fe33d6

View File

@ -1985,7 +1985,7 @@ SwapchainBuilder& SwapchainBuilder::set_desired_min_image_count(uint32_t min_ima
info.add_to_min_image_count = 0; // Unnecessary, but let's do it for clarity info.add_to_min_image_count = 0; // Unnecessary, but let's do it for clarity
return *this; return *this;
} }
SwapchainBuilder& SwapchainBuilder::use_default_min_image_count(uint32_t add_to_min_image_count = 1) { SwapchainBuilder& SwapchainBuilder::use_default_min_image_count(uint32_t add_to_min_image_count) {
info.min_image_count = 0; info.min_image_count = 0;
info.add_to_min_image_count = add_to_min_image_count; info.add_to_min_image_count = add_to_min_image_count;
return *this; return *this;
@ -2015,4 +2015,4 @@ void SwapchainBuilder::add_desired_present_modes(std::vector<VkPresentModeKHR>&
modes.push_back(VK_PRESENT_MODE_MAILBOX_KHR); modes.push_back(VK_PRESENT_MODE_MAILBOX_KHR);
modes.push_back(VK_PRESENT_MODE_FIFO_KHR); modes.push_back(VK_PRESENT_MODE_FIFO_KHR);
} }
} // namespace vkb } // namespace vkb