From 11990086412591dc06145a7725f4ffa97bbdfad2 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 24 Mar 2019 19:21:08 -0700 Subject: [PATCH] TexCache: Align bufw properly even for VRAM. Fixes minimap arrows in Manhunt 2 (see #9615.) --- GPU/Common/TextureDecoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/Common/TextureDecoder.cpp b/GPU/Common/TextureDecoder.cpp index 9e896872fe..b4bf87adfa 100644 --- a/GPU/Common/TextureDecoder.cpp +++ b/GPU/Common/TextureDecoder.cpp @@ -89,7 +89,7 @@ static const u32 textureAlignMask16[16] = { u32 GetTextureBufw(int level, u32 texaddr, GETextureFormat format) { // This is a hack to allow for us to draw the huge PPGe texture, which is always in kernel ram. - if (texaddr < PSP_GetKernelMemoryEnd()) + if (texaddr >= PSP_GetKernelMemoryBase() && texaddr < PSP_GetKernelMemoryEnd()) return gstate.texbufwidth[level] & 0x1FFF; u32 bufw = gstate.texbufwidth[level] & textureAlignMask16[format];