mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-09 08:25:16 +00:00
rpcsx-gpu: handle VK_SUBOPTIMAL_KHR
This commit is contained in:
parent
87845d62a7
commit
df225532ca
1 changed files with 5 additions and 2 deletions
|
|
@ -574,7 +574,9 @@ int main(int argc, const char *argv[]) {
|
|||
continue;
|
||||
}
|
||||
|
||||
VK_VERIFY(acquireNextImageResult);
|
||||
if (acquireNextImageResult != VK_SUBOPTIMAL_KHR) {
|
||||
VK_VERIFY(acquireNextImageResult);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -600,7 +602,8 @@ int main(int argc, const char *argv[]) {
|
|||
|
||||
isImageAcquired = false;
|
||||
|
||||
if (vkQueuePresentResult == VK_ERROR_OUT_OF_DATE_KHR) {
|
||||
if (vkQueuePresentResult == VK_ERROR_OUT_OF_DATE_KHR ||
|
||||
vkQueuePresentResult == VK_SUBOPTIMAL_KHR) {
|
||||
vkContext.recreateSwapchain();
|
||||
} else {
|
||||
VK_VERIFY(vkQueuePresentResult);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue