From 8cc776e2ee4dc426be44495052bce9f576c041f7 Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Tue, 23 Jul 2019 21:30:53 +0200 Subject: [PATCH] tilemap glitch gpu reg fix hopefully --- src/gpu_regs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpu_regs.c b/src/gpu_regs.c index e5ff4fe8f7..3bcc4fd931 100644 --- a/src/gpu_regs.c +++ b/src/gpu_regs.c @@ -10,9 +10,9 @@ static u8 sGpuRegBuffer[GPU_REG_BUF_SIZE]; static u8 sGpuRegWaitingList[GPU_REG_BUF_SIZE]; -static bool8 sGpuRegBufferLocked; -static bool8 sShouldSyncRegIE; -static u16 sRegIE; +static volatile bool8 sGpuRegBufferLocked; +static volatile bool8 sShouldSyncRegIE; +static vu16 sRegIE; static void CopyBufferedValueToGpuReg(u8 regOffset); static void SyncRegIE(void);