From fa10b9ed2f9c68854214c036c8a02cc9a6a47df5 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Fri, 24 May 2019 17:44:54 +0200 Subject: [PATCH] Wrong offset in VramLockedWrite --- core/rend/TexCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rend/TexCache.cpp b/core/rend/TexCache.cpp index f906a785d..25ef5c03c 100644 --- a/core/rend/TexCache.cpp +++ b/core/rend/TexCache.cpp @@ -303,7 +303,7 @@ bool VramLockedWrite(u8* address) if (_nvmem_4gb_space() && !mmu_enabled()) { offset = address - virt_ram_base; - if (offset >= 0x04000000 && offset < 0x050000000) + if (offset >= 0x04000000 && offset < 0x05000000) return VramLockedWriteOffset((offset - 0x04000000) & (VRAM_SIZE - 1)); // 32MB wrap not set yet //if (offset >= 0x06000000 && offset < 0x070000000)