浏览代码

Fix for Win+M crashing the editor
Fixes #77790
Adds missing 'break' statement to 'VulkanContext::prepare_buffers' function.
It was mistakenly removed in #72859

jpcerrone 2 年之前
父节点
当前提交
bd786ce0d9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/vulkan/vulkan_context.cpp

+ 1 - 0
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 {