Don't write a fault message if the driver didn't report any
This commit is contained in:
parent
0dadfd3b82
commit
2bc64af799
1 changed files with 2 additions and 1 deletions
|
|
@ -60,7 +60,8 @@ public:
|
|||
if (result == VK_ERROR_DEVICE_LOST)
|
||||
{
|
||||
VulkanDeviceFaultInfo info = GetDeviceFaultInfo();
|
||||
VulkanPrintLog("fault", info.description);
|
||||
if (!info.description.empty())
|
||||
VulkanPrintLog("fault", info.description);
|
||||
for (const std::string& vendorInfo : info.vendorInfos)
|
||||
VulkanPrintLog("fault", vendorInfo);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue