Fix null pointer crash when writing debug messages

This commit is contained in:
Magnus Norddahl 2022-06-06 02:20:05 +02:00 committed by Christoph Oelckers
parent 0c1aab074c
commit 138d3e86ce

View file

@ -420,7 +420,10 @@ VkBool32 VulkanDevice::DebugCallback(VkDebugUtilsMessageSeverityFlagBitsEXT mess
{
if (i > 0)
msg += ", ";
if (callbackData->pObjects[i].pObjectName)
msg += callbackData->pObjects[i].pObjectName;
else
msg += "<noname>";
}
msg += ")";
}