From 50f1d99435b33bb261f9460da6954a227c8de265 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 1 Nov 2009 18:04:57 +0000 Subject: [PATCH] fix a little bug in the 3d frameskipping --- desmume/src/gfx3d.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desmume/src/gfx3d.cpp b/desmume/src/gfx3d.cpp index d67b89dbc..6e123b3fe 100644 --- a/desmume/src/gfx3d.cpp +++ b/desmume/src/gfx3d.cpp @@ -1996,9 +1996,10 @@ void gfx3d_VBlankSignal() void gfx3d_VBlankEndSignal(bool skipFrame) { if (!drawPending) return; + if(skipFrame) return; + drawPending = FALSE; - if(skipFrame) return; //if the null 3d core is chosen, then we need to clear out the 3d buffers to keep old data from being rendered if(gpu3D == &gpu3DNull || !CommonSettings.showGpu.main) {