Check for an active replacement when naming command buffers. Refs #669

This commit is contained in:
baldurk
2017-06-22 09:50:03 +01:00
parent bcad28b4d0
commit 614b04a34f
@@ -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;