Fix saving of textures

This commit is contained in:
Henrik Rydgård
2023-03-09 10:51:15 +01:00
parent 03df5b7831
commit 092bbf5eaa
4 changed files with 34 additions and 26 deletions
+1 -1
View File
@@ -614,7 +614,7 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry) {
VK_PROFILE_END(vulkan, cmdInit, VK_PIPELINE_STAGE_TRANSFER_BIT);
}
// Format might be wrong in lowMemoryMode_, so don't save.
if (replacer_.Enabled() && plan.replaced->IsInvalid() && !lowMemoryMode_) {
if (plan.saveTexture && !lowMemoryMode_) {
// When hardware texture scaling is enabled, this saves the original.
int w = dataScaled ? mipWidth : mipUnscaledWidth;
int h = dataScaled ? mipHeight : mipUnscaledHeight;