Texcache: Fix "reuse changed textures".

Broken by 9876365, which stopped generating new texture names/ptrs.
This commit is contained in:
Unknown W. Brackets committed 2017-03-25 15:30:58 -07:00
1 parent 43d0a2bcf0
commit bc31415bfc
1 file changed
+3
+3
View File
@@ -1486,6 +1486,9 @@ bool TextureCacheCommon::CheckFullHash(TexCacheEntry *entry, bool &doDelete) {
secondCacheSizeEstimate_ += EstimateTexMemoryUsage(entry);
// Is this wise? We simply copy the entry.
secondCache_[secondKey].reset(new TexCacheEntry(*entry));
// Make sure we don't delete the texture we just copied.
entry->texturePtr = nullptr;
doDelete = false;
}
}