Revert "Temporary hack (see #10163): Ignore the VK_ERROR_INITIALIZATION_FAILED from vkQueueSubmit."

This reverts commit 50cd4a56cb7d0e4dedee439066badf61537f6a59.
This commit is contained in:
Henrik Rydgård 2017-11-24 10:36:50 +01:00
parent 50cd4a56cb
commit bfec850933

View File

@ -794,8 +794,6 @@ void VulkanRenderManager::Submit(int frame, bool triggerFence) {
res = vkQueueSubmit(vulkan_->GetGraphicsQueue(), 1, &submit_info, triggerFence ? frameData.fence : VK_NULL_HANDLE);
if (res == VK_ERROR_DEVICE_LOST) {
_assert_msg_(G3D, false, "Lost the Vulkan device!");
} else if (res == VK_ERROR_INITIALIZATION_FAILED) {
ERROR_LOG(G3D, "Unexpected error submitting main command buffer: VK_ERROR_INITIALIZATION_FAILED");
} else {
_assert_msg_(G3D, res == VK_SUCCESS, "vkQueueSubmit failed (main, split=%d)! result=%d", (int)splitSubmit_, (int)res);
}