From 3d08b9fe3d0e3608b1217cdc86cbb868e29a9afa Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 10 Sep 2022 02:39:24 +0300 Subject: [PATCH] gte: minor diff from libretro --- libpcsxcore/gte.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libpcsxcore/gte.c b/libpcsxcore/gte.c index 03261ee2..991a4452 100644 --- a/libpcsxcore/gte.c +++ b/libpcsxcore/gte.c @@ -154,8 +154,8 @@ // sign-extended by bug in original hardware, according to Nocash docs // GTE section 'Screen Offset and Distance'. The emulator does this // sign extension when it is loaded to GTE by CTC2. -//#define gteH (psxRegs.CP2C.p[26].sw.l) -#define gteH (psxRegs.CP2C.p[26].w.l) +//#define gteH (regs->CP2C.p[26].sw.l) +#define gteH (regs->CP2C.p[26].w.l) #define gteDQA (regs->CP2C.p[27].sw.l) #define gteDQB (((s32 *)regs->CP2C.r)[28]) #define gteZSF3 (regs->CP2C.p[29].sw.l) -- 2.39.5