mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Fix crash when "coherent maps" try to erase end()
* This happened because a memory handle was not currently mapped.
This commit is contained in:
@@ -644,8 +644,8 @@ void WrappedVulkan::vkUnmapMemory(VkDevice device, VkDeviceMemory mem)
|
||||
auto it = std::find(m_CoherentMaps.begin(), m_CoherentMaps.end(), memrecord);
|
||||
if(it == m_CoherentMaps.end())
|
||||
RDCERR("vkUnmapMemory for memory handle that's not currently mapped");
|
||||
|
||||
m_CoherentMaps.erase(it);
|
||||
else
|
||||
m_CoherentMaps.erase(it);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user