[Impeller] SuboptimalKHR is not an exit condition. (flutter/engine#45157)

Sometimes we can get SuboptimalKHR on swapchain aquisition, and if we dont treat that as success the app will exit.
This commit is contained in:
Jonah Williams
2023-08-27 15:05:14 -07:00
committed by GitHub
parent 123bf44114
commit a03b6e3a36

View File

@@ -379,7 +379,8 @@ SwapchainImplVK::AcquireResult SwapchainImplVK::AcquireNextDrawable() {
return AcquireResult{true /* out of date */};
}
if (acq_result != vk::Result::eSuccess) {
if (acq_result != vk::Result::eSuccess &&
acq_result != vk::Result::eSuboptimalKHR) {
VALIDATION_LOG << "Could not acquire next swapchain image: "
<< vk::to_string(acq_result);
return {};