mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-22 04:24:44 +00:00
vulkan: Fix crash when resizing window.
This commit is contained in:
parent
a4168150ed
commit
6f120ad3ed
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ void Swapchain::Present() {
|
|||
};
|
||||
|
||||
auto result = instance.GetPresentQueue().presentKHR(present_info);
|
||||
if (result == vk::Result::eErrorOutOfDateKHR) {
|
||||
if (result == vk::Result::eErrorOutOfDateKHR || result == vk::Result::eSuboptimalKHR) {
|
||||
needs_recreation = true;
|
||||
} else {
|
||||
ASSERT_MSG(result == vk::Result::eSuccess, "Swapchain presentation failed: {}",
|
||||
|
|
Loading…
Add table
Reference in a new issue