GPU/HW: Fix incorrect source rect for page replacements

This commit is contained in:
Stenzek 2025-02-09 17:45:10 +10:00
parent ac4ef4f853
commit 4ce48abfc1
No known key found for this signature in database

View File

@ -2990,8 +2990,8 @@ void GPUTextureCache::GetTexturePageTextureReplacements(std::vector<TextureRepla
continue; continue;
const GSVector2 scale = GSVector2(texture->GetSizeVec()) / GSVector2(name.GetSizeVec()); const GSVector2 scale = GSVector2(texture->GetSizeVec()) / GSVector2(name.GetSizeVec());
replacements.push_back(TextureReplacementSubImage{rect_in_page_space, GSVector4i::loadh(texture->GetSizeVec()), replacements.push_back(TextureReplacementSubImage{rect_in_page_space, GSVector4i::loadh(name.GetSizeVec()), texture,
texture, scale.x, scale.y, name.IsSemitransparent()}); scale.x, scale.y, name.IsSemitransparent()});
} }
} }