mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-02 22:28:45 +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);
|
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…
Add table
Add a link
Reference in a new issue