Minor fix in GLTF resource manager
assiduous
2 years ago
128 | 128 | std::lock_guard<std::mutex> Lock{m_TexAllocationsMtx}; |
129 | 129 | // Note that the same allocation may potentially be created by more |
130 | 130 | // than one thread if it has not been found in the cache originally |
131 | m_TexAllocations.emplace(CacheId, pAllocation).second; | |
131 | m_TexAllocations.emplace(CacheId, pAllocation); | |
132 | 132 | } |
133 | 133 | |
134 | 134 | return pAllocation; |