mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
Fix null pointer crash when writing debug messages
This commit is contained in:
parent
0c1aab074c
commit
138d3e86ce
1 changed files with 4 additions and 1 deletions
|
@ -420,7 +420,10 @@ VkBool32 VulkanDevice::DebugCallback(VkDebugUtilsMessageSeverityFlagBitsEXT mess
|
|||
{
|
||||
if (i > 0)
|
||||
msg += ", ";
|
||||
msg += callbackData->pObjects[i].pObjectName;
|
||||
if (callbackData->pObjects[i].pObjectName)
|
||||
msg += callbackData->pObjects[i].pObjectName;
|
||||
else
|
||||
msg += "<noname>";
|
||||
}
|
||||
msg += ")";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue