From 086112c4b58ae6b481329e204fcc5055703ab41c Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 25 Oct 2021 22:59:43 -0400 Subject: [PATCH] isSwapBuffers is savestated with a size set to 4, so it needs to be a u32 and not a BOOL --- desmume/src/gfx3d.cpp | 2 +- desmume/src/gfx3d.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/gfx3d.cpp b/desmume/src/gfx3d.cpp index f4c9a18b1..d89e0ef9c 100644 --- a/desmume/src/gfx3d.cpp +++ b/desmume/src/gfx3d.cpp @@ -323,7 +323,7 @@ static u32 clCmd = 0; static u32 clInd = 0; static u32 clInd2 = 0; -BOOL isSwapBuffers = FALSE; +u32 isSwapBuffers = FALSE; static u32 BTind = 0; static u32 PTind = 0; diff --git a/desmume/src/gfx3d.h b/desmume/src/gfx3d.h index d1d78a8cb..714e547a5 100644 --- a/desmume/src/gfx3d.h +++ b/desmume/src/gfx3d.h @@ -616,7 +616,7 @@ extern GFX3D gfx3d; extern CACHE_ALIGN u32 dsDepthExtend_15bit_to_24bit[32768]; extern CACHE_ALIGN u8 mixTable555[32][32][32]; -extern BOOL isSwapBuffers; +extern u32 isSwapBuffers; void gfx3d_glFlush(u32 v); // end GE commands