Skip to content

Commit

Permalink
Don't copy RageTextures when GC'ing them
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Dec 3, 2018
1 parent ee81d6d commit a739d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RageTextureManager.cpp
Expand Up @@ -311,7 +311,7 @@ RageTextureManager::GarbageCollect(GCType type)
if (PREFSMAN->m_verbose_log > 1)
LOG->Trace("Performing texture garbage collection.");

for (auto ID : m_mapPathToTexture) {
for (auto& ID : m_mapPathToTexture) {
RageTexture* t = ID.second;

if (t->m_iRefCount)
Expand Down

0 comments on commit a739d7c

Please sign in to comment.