diff --git a/renderdoc/driver/vulkan/wrappers/vk_misc_funcs.cpp b/renderdoc/driver/vulkan/wrappers/vk_misc_funcs.cpp index 4cdd13456..5f86b8505 100644 --- a/renderdoc/driver/vulkan/wrappers/vk_misc_funcs.cpp +++ b/renderdoc/driver/vulkan/wrappers/vk_misc_funcs.cpp @@ -1101,7 +1101,7 @@ bool WrappedVulkan::Serialise_vkDebugMarkerSetObjectNameEXT(Serialiser *localSer // if we don't have a live resource, this is probably a command buffer being named on the // virtual non-existant parent, not any of the baked IDs. Just save the name on the original ID // and we'll propagate it in Serialise_vkBeginCommandBuffer - if(!GetResourceManager()->HasLiveResource(id)) + if(!GetResourceManager()->HasLiveResource(id) || GetResourceManager()->HasReplacement(id)) m_CreationInfo.m_Names[id] = name; else m_CreationInfo.m_Names[GetResourceManager()->GetLiveID(id)] = name;