Skip to content

Commit 0e8bdeb

Browse files
committed
Don't write a fault message if the driver didn't report any
1 parent ed8f9bb commit 0e8bdeb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/zvulkan/vulkandevice.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class VulkanDevice
6060
if (result == VK_ERROR_DEVICE_LOST)
6161
{
6262
VulkanDeviceFaultInfo info = GetDeviceFaultInfo();
63-
VulkanPrintLog("fault", info.description);
63+
if (!info.description.empty())
64+
VulkanPrintLog("fault", info.description);
6465
for (const std::string& vendorInfo : info.vendorInfos)
6566
VulkanPrintLog("fault", vendorInfo);
6667
}

0 commit comments

Comments
 (0)