Skip to content

Commit

Permalink
GPU/HW: Fix incorrect source rect for page replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Feb 9, 2025
1 parent ac4ef4f commit 4ce48ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/gpu_hw_texture_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2990,8 +2990,8 @@ void GPUTextureCache::GetTexturePageTextureReplacements(std::vector<TextureRepla
continue;

const GSVector2 scale = GSVector2(texture->GetSizeVec()) / 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()});
}
}

Expand Down

0 comments on commit 4ce48ab

Please sign in to comment.