Skip to content

Commit

Permalink
Fix for Win+M crashing the editor
Browse files Browse the repository at this point in the history
Fixes godotengine#77790
Adds missing 'break' statement to 'VulkanContext::prepare_buffers' function.
It was mistakenly removed in godotengine#72859

(cherry picked from commit bd786ce)
  • Loading branch information
jpcerrone authored and YuriSizov committed Jul 20, 2023
1 parent 52f583f commit dd2907f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/vulkan/vulkan_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dd2907f

Please sign in to comment.