mirror of
https://github.com/libretro/RetroArch
synced 2025-04-03 19:20:24 +00:00
(Vulkan) vulkan_debug_mark_object - C89 buildfix
This commit is contained in:
parent
7402d6ec94
commit
020e5fd7af
@ -271,12 +271,13 @@ static void vulkan_debug_mark_object(VkDevice device,
|
|||||||
if (vkSetDebugUtilsObjectNameEXT)
|
if (vkSetDebugUtilsObjectNameEXT)
|
||||||
{
|
{
|
||||||
char merged_name[1024];
|
char merged_name[1024];
|
||||||
snprintf(merged_name, sizeof(merged_name), "%s (%u)", name, count);
|
|
||||||
|
|
||||||
VkDebugUtilsObjectNameInfoEXT info = { VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT };
|
VkDebugUtilsObjectNameInfoEXT info = { VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT };
|
||||||
info.objectType = object_type;
|
size_t _len = strlcpy(merged_name, name, sizeof(merged_name));
|
||||||
info.objectHandle = object_handle;
|
snprintf(merged_name + _len, sizeof(merged_name) - _len, " (%u)", count);
|
||||||
info.pObjectName = merged_name;
|
|
||||||
|
info.objectType = object_type;
|
||||||
|
info.objectHandle = object_handle;
|
||||||
|
info.pObjectName = merged_name;
|
||||||
vkSetDebugUtilsObjectNameEXT(device, &info);
|
vkSetDebugUtilsObjectNameEXT(device, &info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user