mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-20 15:40:30 +01:00
rpcsx-gpu: handle VK_SUBOPTIMAL_KHR
This commit is contained in:
parent
87845d62a7
commit
df225532ca
|
|
@ -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…
Reference in a new issue