mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 00:20:51 +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 += ", ";
|
||||
if (callbackData->pObjects[i].pObjectName)
|
||||
msg += callbackData->pObjects[i].pObjectName;
|
||||
else
|
||||
msg += "<noname>";
|
||||
}
|
||||
msg += ")";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue