1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Recreate swap chain when suboptimal to avoid error spam

This commit is contained in:
clayjohn
2023-02-07 13:43:14 -08:00
parent 929333fe26
commit c9d2bc91aa

View File

@@ -2268,8 +2268,8 @@ Error VulkanContext::prepare_buffers() {
} else if (err == VK_SUBOPTIMAL_KHR) {
// Swapchain is not as optimal as it could be, but the platform's
// presentation engine will still present the image correctly.
print_verbose("Vulkan: Early suboptimal swapchain.");
break;
print_verbose("Vulkan: Early suboptimal swapchain, recreating.");
_update_swap_chain(w);
} else if (err != VK_SUCCESS) {
ERR_BREAK_MSG(err != VK_SUCCESS, "Vulkan: Did not create swapchain successfully.");
} else {