Permalink
Browse files

Temporary hack (see #10163): Ignore the VK_ERROR_INITIALIZATION_FAILE…

…D from vkQueueSubmit.
  • Loading branch information...
hrydgard committed Nov 24, 2017
1 parent 31c1b5a commit 50cd4a56cb7d0e4dedee439066badf61537f6a59
Showing with 2 additions and 0 deletions.
  1. +2 −0 ext/native/thin3d/VulkanRenderManager.cpp
@@ -794,6 +794,8 @@ 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);
}

0 comments on commit 50cd4a5

Please sign in to comment.