mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Vulkan: Try to survive VK_ERROR_SURFACE_LOST_KHR
This commit is contained in:
@@ -1603,6 +1603,11 @@ void VulkanRenderManager::Run(VKRRenderThreadTask &task) {
|
||||
outOfDateFrames_++;
|
||||
} else if (res == VK_SUBOPTIMAL_KHR) {
|
||||
outOfDateFrames_++;
|
||||
} else if (res == VK_ERROR_SURFACE_LOST_KHR) {
|
||||
_dbg_assert_msg_(false, "vkQueuePresentKHR failed with VK_ERROR_SURFACE_LOST_KHR! result=%s", VulkanResultToString(res));
|
||||
// Can't really do anything about this here, but let's try to continue anyway, maybe the app is in the process of being switched
|
||||
// away from on Android or something.
|
||||
outOfDateFrames_++;
|
||||
} else if (res != VK_SUCCESS) {
|
||||
_assert_msg_(false, "vkQueuePresentKHR failed! result=%s", VulkanResultToString(res));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user