From c0780f5267aac92ab50285a2ef053ee967075ac3 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Mon, 18 Dec 2017 14:24:58 -0500 Subject: [PATCH] Fixed flickering. --- nx/source/gfx/gfx.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nx/source/gfx/gfx.c b/nx/source/gfx/gfx.c index f9711c7c..2745c2ca 100644 --- a/nx/source/gfx/gfx.c +++ b/nx/source/gfx/gfx.c @@ -302,6 +302,7 @@ static void _waitevent(Handle *handle) { void gfxWaitForVsync() { _waitevent(&g_gfxDisplayVsyncEvent); + _waitevent(&g_gfxDisplayVsyncEvent); } void gfxSwapBuffers() { @@ -311,11 +312,6 @@ void gfxSwapBuffers() { if (R_SUCCEEDED(rc)) rc = _gfxDequeueBuffer(); - #ifdef BUFFERSWAP_DELAY_HACK - gfxWaitForVsync(); - gfxWaitForVsync(); - #endif - if (R_FAILED(rc)) fatalSimple(rc); }