VKGfx: Don't panic for VK_SUBOPTIMAL_KHR
This commit is contained in:
parent
2f7f7afe6d
commit
58f5bf5496
|
@ -283,7 +283,7 @@ void VKGfx::BindBackbuffer(const ClearColor& clear_color)
|
|||
}
|
||||
|
||||
res = m_swap_chain->AcquireNextImage();
|
||||
if (res != VK_SUCCESS)
|
||||
if (res != VK_SUCCESS && res != VK_SUBOPTIMAL_KHR)
|
||||
PanicAlertFmt("Failed to grab image from swap chain: {:#010X} {}", Common::ToUnderlying(res),
|
||||
VkResultToString(res));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue