fix a little bug in the 3d frameskipping

This commit is contained in:
zeromus 2009-11-01 18:04:57 +00:00
parent d6746f7dd8
commit 50f1d99435
1 changed files with 2 additions and 1 deletions

View File

@ -1996,9 +1996,10 @@ void gfx3d_VBlankSignal()
void gfx3d_VBlankEndSignal(bool skipFrame) void gfx3d_VBlankEndSignal(bool skipFrame)
{ {
if (!drawPending) return; if (!drawPending) return;
if(skipFrame) return;
drawPending = FALSE; 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 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) if(gpu3D == &gpu3DNull || !CommonSettings.showGpu.main)
{ {