From 4ce48abfc16f6e9fbcd82e34b37ea5b95de332d6 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 9 Feb 2025 17:45:10 +1000 Subject: [PATCH] GPU/HW: Fix incorrect source rect for page replacements --- src/core/gpu_hw_texture_cache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/gpu_hw_texture_cache.cpp b/src/core/gpu_hw_texture_cache.cpp index 357a5ab88..ddec5d587 100644 --- a/src/core/gpu_hw_texture_cache.cpp +++ b/src/core/gpu_hw_texture_cache.cpp @@ -2990,8 +2990,8 @@ void GPUTextureCache::GetTexturePageTextureReplacements(std::vectorGetSizeVec()) / GSVector2(name.GetSizeVec()); - replacements.push_back(TextureReplacementSubImage{rect_in_page_space, GSVector4i::loadh(texture->GetSizeVec()), - texture, scale.x, scale.y, name.IsSemitransparent()}); + replacements.push_back(TextureReplacementSubImage{rect_in_page_space, GSVector4i::loadh(name.GetSizeVec()), texture, + scale.x, scale.y, name.IsSemitransparent()}); } }