summaryrefslogtreecommitdiffstats
path: root/drivers/vulkan
diff options
context:
space:
mode:
authorjpcerrone <jpcerronex@gmail.com>2023-06-14 14:34:09 -0300
committerjpcerrone <jpcerronex@gmail.com>2023-06-14 14:34:09 -0300
commitbd786ce0d9951deb547238b7ef75583c7b840ae4 (patch)
tree459d188444b784ca85799cff802c487d1d61427e /drivers/vulkan
parent824c139f6b4dda2c4e0397532ea8269385468f08 (diff)
downloadredot-engine-bd786ce0d9951deb547238b7ef75583c7b840ae4.tar.gz
Fix for Win+M crashing the editor
Fixes #77790 Adds missing 'break' statement to 'VulkanContext::prepare_buffers' function. It was mistakenly removed in #72859
Diffstat (limited to 'drivers/vulkan')
-rw-r--r--drivers/vulkan/vulkan_context.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vulkan/vulkan_context.cpp b/drivers/vulkan/vulkan_context.cpp
index f65056951d..3feed2b109 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 {