Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Prev Previous commit
Next Next commit
Tweak switch case.
  • Loading branch information
matanlurey committed Aug 8, 2023
commit 5113140042a136535b41a8c6870f86901ffbefa9
5 changes: 5 additions & 0 deletions impeller/renderer/backend/vulkan/swapchain_impl_vk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ bool SwapchainImplVK::Present(const std::shared_ptr<SwapchainImageVK>& image,
// Vulkan guarantees that the set of queue operations will still
// complete successfully.
[[fallthrough]];
case vk::Result::eSuboptimalKHR:
// In theory we shouldn't receive this (because we're polling above)
// but we shouldn't handle it as a validation error if we do receive
// it.
[[fallthrough]];
case vk::Result::eSuccess:
return;
default:
Expand Down