mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Fix check when removing resources from wrapper map
This commit is contained in:
@@ -1801,7 +1801,7 @@ void ResourceManager<Configuration>::RemoveWrapper(WrappedResourceType wrapped,
|
||||
// multiple wrappers for the same object on replay, due to API deduplication between an internal
|
||||
// object and an application-created object. Backends are expected to deduplicate during capture
|
||||
// (See OverrideWrapper below)
|
||||
if(it == m_WrapperMap.end() || it->second == wrapped)
|
||||
if(it != m_WrapperMap.end() && it->second == wrapped)
|
||||
m_WrapperMap.erase(it);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user