mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 15:30:29 +02:00
Texcache: Fix "reuse changed textures".
Broken by 9876365, which stopped generating new texture names/ptrs.
This commit is contained in:
1 parent
43d0a2bcf0
commit
bc31415bfc
1 file changed
+3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user