diff options
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/include/ResourceMappingImpl.h | 2 | ||||
| -rw-r--r-- | Graphics/GraphicsEngine/include/StateObjectsRegistry.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngine/include/ResourceMappingImpl.h b/Graphics/GraphicsEngine/include/ResourceMappingImpl.h index 39bc0f0a..0996144e 100644 --- a/Graphics/GraphicsEngine/include/ResourceMappingImpl.h +++ b/Graphics/GraphicsEngine/include/ResourceMappingImpl.h @@ -126,7 +126,7 @@ namespace Diligent ThreadingTools::LockHelper Lock(); ThreadingTools::LockFlag m_LockFlag; - typedef std::pair<ResMappingHashKey, RefCntAutoPtr<IDeviceObject> > HashTableElem; + typedef std::pair<const ResMappingHashKey, RefCntAutoPtr<IDeviceObject> > HashTableElem; std::unordered_map< ResMappingHashKey, RefCntAutoPtr<IDeviceObject>, std::hash<ResMappingHashKey>, std::equal_to<ResMappingHashKey>, STDAllocatorRawMem<HashTableElem> > m_HashTable; }; } diff --git a/Graphics/GraphicsEngine/include/StateObjectsRegistry.h b/Graphics/GraphicsEngine/include/StateObjectsRegistry.h index 1a05ced7..febad5c6 100644 --- a/Graphics/GraphicsEngine/include/StateObjectsRegistry.h +++ b/Graphics/GraphicsEngine/include/StateObjectsRegistry.h @@ -198,7 +198,7 @@ namespace Diligent Atomics::AtomicLong m_NumDeletedObjects; /// Hash map that stores weak pointers to the referenced objects - typedef std::pair< ResourceDescType, RefCntWeakPtr<IDeviceObject> > HashMapElem; + typedef std::pair< const ResourceDescType, RefCntWeakPtr<IDeviceObject> > HashMapElem; std::unordered_map<ResourceDescType, RefCntWeakPtr<IDeviceObject>, std::hash<ResourceDescType>, std::equal_to<ResourceDescType>, STDAllocatorRawMem<HashMapElem> > m_DescToObjHashMap; /// Registry name used for debug output |
