Prechádzať zdrojové kódy

Merge pull request #78235 from jpcerrone/fix_win_m_crashing_editor

Fix for Win+M crashing the editor
Rémi Verschelde 2 rokov pred
rodič
commit
81c3864306
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  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.
 				// presentation engine will still present the image correctly.
 				print_verbose("Vulkan: Early suboptimal swapchain, recreating.");
 				print_verbose("Vulkan: Early suboptimal swapchain, recreating.");
 				_update_swap_chain(w);
 				_update_swap_chain(w);
+				break;
 			} else if (err != VK_SUCCESS) {
 			} else if (err != VK_SUCCESS) {
 				ERR_BREAK_MSG(err != VK_SUCCESS, "Vulkan: Did not create swapchain successfully. Error code: " + String(string_VkResult(err)));
 				ERR_BREAK_MSG(err != VK_SUCCESS, "Vulkan: Did not create swapchain successfully. Error code: " + String(string_VkResult(err)));
 			} else {
 			} else {