summaryrefslogtreecommitdiffstats
path: root/AssetLoader/src/GLTFResourceManager.cpp
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2021-01-08 06:35:55 +0000
committerassiduous <assiduous@diligentgraphics.com>2021-01-08 06:35:55 +0000
commit674a136c233b9f2ac62c1cbdb743f536050420cc (patch)
treec3a53ff673816626e538ebd2ecf10f77bf8bbb65 /AssetLoader/src/GLTFResourceManager.cpp
parentFixed clang/gcc build error (diff)
downloadDiligentTools-674a136c233b9f2ac62c1cbdb743f536050420cc.tar.gz
DiligentTools-674a136c233b9f2ac62c1cbdb743f536050420cc.zip
Minor fix in GLTF resource manager
Diffstat (limited to 'AssetLoader/src/GLTFResourceManager.cpp')
-rw-r--r--AssetLoader/src/GLTFResourceManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/AssetLoader/src/GLTFResourceManager.cpp b/AssetLoader/src/GLTFResourceManager.cpp
index 284b996..27b75e1 100644
--- a/AssetLoader/src/GLTFResourceManager.cpp
+++ b/AssetLoader/src/GLTFResourceManager.cpp
@@ -129,7 +129,7 @@ RefCntAutoPtr<ITextureAtlasSuballocation> ResourceManager::AllocateTextureSpace(
std::lock_guard<std::mutex> Lock{m_TexAllocationsMtx};
// Note that the same allocation may potentially be created by more
// than one thread if it has not been found in the cache originally
- m_TexAllocations.emplace(CacheId, pAllocation).second;
+ m_TexAllocations.emplace(CacheId, pAllocation);
}
return pAllocation;