From 3aedea89eb2e0e61e0170e15ae6eaa735ea9918e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 29 Dec 2021 07:09:36 -0800 Subject: [PATCH] samplerjit: Correct level lookup offset. --- GPU/Software/SamplerX86.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPU/Software/SamplerX86.cpp b/GPU/Software/SamplerX86.cpp index cd4071f044..21b6b3e9e8 100644 --- a/GPU/Software/SamplerX86.cpp +++ b/GPU/Software/SamplerX86.cpp @@ -2313,7 +2313,8 @@ bool SamplerJitCache::Jit_ReadClutColor(const SamplerID &id) { } else { #if PPSSPP_PLATFORM(WINDOWS) if (id.linear) { - MOV(32, R(temp2Reg), MDisp(RSP, stackArgPos_ + 16)); + // Extra 8 to account for call. + MOV(32, R(temp2Reg), MDisp(RSP, stackArgPos_ + 8 + 16)); } else { // The argument was saved on the stack. MOV(32, R(temp2Reg), MDisp(RSP, 40));