Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c1b2ef0

Browse files
author
Jonah Williams
authored
[Impeller] SuboptimalKHR is not an exit condition. (#45157)
Sometimes we can get SuboptimalKHR on swapchain aquisition, and if we dont treat that as success the app will exit.
1 parent 1e29989 commit c1b2ef0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

impeller/renderer/backend/vulkan/swapchain_impl_vk.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,8 @@ SwapchainImplVK::AcquireResult SwapchainImplVK::AcquireNextDrawable() {
379379
return AcquireResult{true /* out of date */};
380380
}
381381

382-
if (acq_result != vk::Result::eSuccess) {
382+
if (acq_result != vk::Result::eSuccess &&
383+
acq_result != vk::Result::eSuboptimalKHR) {
383384
VALIDATION_LOG << "Could not acquire next swapchain image: "
384385
<< vk::to_string(acq_result);
385386
return {};

0 commit comments

Comments
 (0)