From: notaz Date: Fri, 9 Sep 2022 23:39:24 +0000 (+0300) Subject: gte: minor diff from libretro X-Git-Tag: r24~315 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d08b9fe3d0e3608b1217cdc86cbb868e29a9afa;p=pcsx_rearmed.git gte: minor diff from libretro --- 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)