mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 13:06:24 +02:00
Replacement: Save textures even if already replaced, if the png is missing.
Fixes #17182 Not exactly sure what behavior we really want, but I think this one is OK, and at least more similar to the old one. Now we save already-replaced textures if the named replacement texture is missing, and there isn't already a hash-named one in new or the "root".
This commit is contained in:
1 parent
668a6d63cb
commit
4e41233bb7
6 files changed
+35
-16
No files matched your search
@@ -2967,7 +2967,7 @@ void TextureCacheCommon::LoadTextureLevel(TexCacheEntry &entry, uint8_t *data, s
|
||||
replacedInfo.fmt = dstFmt;
|
||||
|
||||
// NOTE: Reading the decoded texture here may be very slow, if we just wrote it to write-combined memory.
|
||||
replacer_.NotifyTextureDecoded(replacedInfo, pixelData, decPitch, srcLevel, w, h, scaledW, scaledH);
|
||||
replacer_.NotifyTextureDecoded(plan.replaced, replacedInfo, pixelData, decPitch, srcLevel, w, h, scaledW, scaledH);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user