mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-20 11:04:56 +00:00
Vulkan/CommandBufferManager: Show error code in PanicAlerts.
This commit is contained in:
parent
078777e804
commit
eea31db781
1 changed files with 4 additions and 2 deletions
|
@ -303,7 +303,8 @@ void CommandBufferManager::SubmitCommandBuffer(bool submit_on_worker_thread,
|
||||||
if (res != VK_SUCCESS)
|
if (res != VK_SUCCESS)
|
||||||
{
|
{
|
||||||
LOG_VULKAN_ERROR(res, "vkEndCommandBuffer failed: ");
|
LOG_VULKAN_ERROR(res, "vkEndCommandBuffer failed: ");
|
||||||
PanicAlertFmt("Failed to end command buffer");
|
PanicAlertFmt("Failed to end command buffer: {} ({})", VkResultToString(res),
|
||||||
|
static_cast<int>(res));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -400,7 +401,8 @@ void CommandBufferManager::SubmitCommandBuffer(u32 command_buffer_index,
|
||||||
if (res != VK_SUCCESS)
|
if (res != VK_SUCCESS)
|
||||||
{
|
{
|
||||||
LOG_VULKAN_ERROR(res, "vkQueueSubmit failed: ");
|
LOG_VULKAN_ERROR(res, "vkQueueSubmit failed: ");
|
||||||
PanicAlertFmt("Failed to submit command buffer.");
|
PanicAlertFmt("Failed to submit command buffer: {} ({})", VkResultToString(res),
|
||||||
|
static_cast<int>(res));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do we have a swap chain to present?
|
// Do we have a swap chain to present?
|
||||||
|
|
Loading…
Add table
Reference in a new issue