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
  • Loading branch information
jpcerrone committed Jun 14, 2023
1 parent 824c139 commit bd786ce
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 bd786ce

Please sign in to comment.