Skip to content

Commit

Permalink
dump resource: Replace calls to exit(1) with throw()
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlunarg committed Nov 20, 2024
1 parent efc0a6c commit b190353
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions framework/decode/vulkan_replay_dump_resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1876,11 +1876,8 @@ VkResult VulkanReplayDumpResourcesBase::QueueSubmit(const std::vector<VkSubmitIn
queue, index, cmd_buf_begin_map_[command_buffer_handles[o]], modified_submit_infos[s], fence);
if (res != VK_SUCCESS)
{
GFXRECON_LOG_ERROR("Dumping draw calls failed (%s). Terminating.",
util::ToString<VkResult>(res).c_str())
Release();
exit(1);
return res;
throw(std::runtime_error("Dumping draw calls failed: " + util::ToString<VkResult>(res)));
}

submitted = true;
Expand All @@ -1893,11 +1890,8 @@ VkResult VulkanReplayDumpResourcesBase::QueueSubmit(const std::vector<VkSubmitIn
queue, index, cmd_buf_begin_map_[command_buffer_handles[o]], modified_submit_infos[s], fence);
if (res != VK_SUCCESS)
{
GFXRECON_LOG_ERROR("Dumping dispatch/ray tracing failed (%s). Terminating.",
util::ToString<VkResult>(res).c_str())
Release();
exit(1);
return res;
throw(std::runtime_error("Dumping dispatch/ray tracing failed: " + util::ToString<VkResult>(res)));
}

submitted = true;
Expand Down

0 comments on commit b190353

Please sign in to comment.