Vulkan: Prevent saving tex during replace load.

This commit is contained in:
Unknown W. Brackets 2022-09-01 18:52:52 -07:00
parent 5200208a84
commit 1033fa6cd7

View file

@ -628,7 +628,7 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry) {
entry->vkTex->UploadMip(cmdInit, i, mipWidth, mipHeight, 0, texBuf, bufferOffset, stride / bpp);
VK_PROFILE_END(vulkan, cmdInit, VK_PIPELINE_STAGE_TRANSFER_BIT);
}
if (replacer_.Enabled()) {
if (replacer_.Enabled() && plan.replaced->IsInvalid()) {
// When hardware texture scaling is enabled, this saves the original.
int w = dataScaled ? mipWidth : mipUnscaledWidth;
int h = dataScaled ? mipHeight : mipUnscaledHeight;