From bd786ce0d9951deb547238b7ef75583c7b840ae4 Mon Sep 17 00:00:00 2001 From: jpcerrone Date: Wed, 14 Jun 2023 14:34:09 -0300 Subject: [PATCH] Fix for Win+M crashing the editor Fixes #77790 Adds missing 'break' statement to 'VulkanContext::prepare_buffers' function. It was mistakenly removed in #72859 --- drivers/vulkan/vulkan_context.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/vulkan/vulkan_context.cpp b/drivers/vulkan/vulkan_context.cpp index f65056951d0..3feed2b1095 100644 --- a/drivers/vulkan/vulkan_context.cpp +++ b/drivers/vulkan/vulkan_context.cpp @@ -2276,6 +2276,7 @@ Error VulkanContext::prepare_buffers() { // presentation engine will still present the image correctly. print_verbose("Vulkan: Early suboptimal swapchain, recreating."); _update_swap_chain(w); + break; } else if (err != VK_SUCCESS) { ERR_BREAK_MSG(err != VK_SUCCESS, "Vulkan: Did not create swapchain successfully. Error code: " + String(string_VkResult(err))); } else {