demo: don't error-out on VK_SUBOPTIMAL_KHR

This commit is contained in:
Jonathan Bradley 2024-03-08 11:40:43 -05:00
parent 8e5c9f7f34
commit 40a172bdaa
1 changed files with 1 additions and 1 deletions

View File

@ -2219,7 +2219,7 @@ int main(void) {
if (result == VK_ERROR_OUT_OF_DATE_KHR) {
continue;
}
if (result != VK_SUCCESS) {
if (result != VK_SUCCESS && result != VK_SUBOPTIMAL_KHR) {
fprintf(stderr, "vkAcquireNextImageKHR failed: %d\n", result);
return false;
}