mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-22 14:31:39 +00:00
vulkan: Fix crash when resizing window. (#1142)
This commit is contained in:
parent
b13381bacd
commit
bfeed1f7c6
|
@ -123,7 +123,7 @@ void Swapchain::Present() {
|
||||||
};
|
};
|
||||||
|
|
||||||
auto result = instance.GetPresentQueue().presentKHR(present_info);
|
auto result = instance.GetPresentQueue().presentKHR(present_info);
|
||||||
if (result == vk::Result::eErrorOutOfDateKHR) {
|
if (result == vk::Result::eErrorOutOfDateKHR || result == vk::Result::eSuboptimalKHR) {
|
||||||
needs_recreation = true;
|
needs_recreation = true;
|
||||||
} else {
|
} else {
|
||||||
ASSERT_MSG(result == vk::Result::eSuccess, "Swapchain presentation failed: {}",
|
ASSERT_MSG(result == vk::Result::eSuccess, "Swapchain presentation failed: {}",
|
||||||
|
|
Loading…
Reference in a new issue