Fix saving of textures

This commit is contained in:
Henrik Rydgård committed 2023-03-09 10:51:15 +01:00
1 parent 03df5b7831
commit 092bbf5eaa
4 files changed
+34 -26

No files matched your search

+1 -1
View File
@@ -2901,7 +2901,7 @@ void TextureCacheCommon::LoadTextureLevel(TexCacheEntry &entry, uint8_t *data, i
}
}
if (replacer_.Enabled() && plan.replaced->IsInvalid()) {
if (plan.saveTexture && !lowMemoryMode_) {
ReplacedTextureDecodeInfo replacedInfo;
replacedInfo.cachekey = entry.CacheKey();
replacedInfo.hash = entry.fullhash;