From 30ecec315eb0224216f33eaf95809e3ebb74341f Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 2 Mar 2015 13:40:34 -0500 Subject: [PATCH] In Debug builds, force flushing of all GL commands each buffer swap. --- Source/Glitch64/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Glitch64/main.cpp b/Source/Glitch64/main.cpp index 5ce238aa4..a3bfaa9ef 100644 --- a/Source/Glitch64/main.cpp +++ b/Source/Glitch64/main.cpp @@ -2115,6 +2115,10 @@ grBufferSwap( FxU32 swap_interval ) for (i = 0; i < nb_fb; i++) fbs[i].buff_clear = 1; +#ifdef _DEBUG + grFinish(); +#endif + // VP debugging #ifdef VPDEBUG dump_stop();