mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-02-14 08:01:18 +00:00
vulkan: Fix crash when resizing window. (#1142)
This commit is contained in:
parent
40d00e3066
commit
5e98a3e1d8
@ -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…
x
Reference in New Issue
Block a user