GPU/TextureCache: Fix replacements starting in second page

This commit is contained in:
Stenzek 2025-01-30 13:32:56 +10:00
parent 44a75d6586
commit f7d7eecb6c
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -3603,7 +3603,7 @@ void GPUTextureCache::ApplyTextureReplacements(SourceKey key, HashType tex_hash,
if (HasVRAMWriteTextureReplacements())
{
const GSVector4i page_rect = VRAMPageRect(key.page);
const GSVector4i page_rect = GetTextureRect(key.page, key.mode);
LoopRectPages(page_rect, [&key, &pal_hash, &subimages, &page_rect](u32 pn) {
const PageEntry& page = s_state.pages[pn];
ListIterate(page.writes, [&key, &pal_hash, &subimages, &page_rect](const VRAMWrite* vrw) {