Quit the app if vkQueueSubmit with fence fails

It prevents infinitive vkWaitForFences later
This commit is contained in:
Benau 2022-04-01 10:16:28 +08:00
parent 601511e7f4
commit 6c7e4f25ea

View File

@ -1373,7 +1373,7 @@ bool GEVulkanDriver::endScene()
m_vk->in_flight_fences[m_current_frame]);
if (result != VK_SUCCESS)
return false;
throw std::runtime_error("vkQueueSubmit failed");
VkSemaphore semaphores[] =
{