mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-07 03:55:33 +00:00
GPU/TextureCache: Fix replacements starting in second page
This commit is contained in:
parent
44a75d6586
commit
f7d7eecb6c
@ -3603,7 +3603,7 @@ void GPUTextureCache::ApplyTextureReplacements(SourceKey key, HashType tex_hash,
|
|||||||
|
|
||||||
if (HasVRAMWriteTextureReplacements())
|
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) {
|
LoopRectPages(page_rect, [&key, &pal_hash, &subimages, &page_rect](u32 pn) {
|
||||||
const PageEntry& page = s_state.pages[pn];
|
const PageEntry& page = s_state.pages[pn];
|
||||||
ListIterate(page.writes, [&key, &pal_hash, &subimages, &page_rect](const VRAMWrite* vrw) {
|
ListIterate(page.writes, [&key, &pal_hash, &subimages, &page_rect](const VRAMWrite* vrw) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user