From 998980843f12588f97957bea3ef63afbf51bb63e Mon Sep 17 00:00:00 2001 From: plutoo Date: Sun, 3 Dec 2017 00:08:35 +0100 Subject: [PATCH] Fix gfxWaitForVsync --- nx/source/gfx/gfx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nx/source/gfx/gfx.c b/nx/source/gfx/gfx.c index a6b82d4b..ef566cdc 100644 --- a/nx/source/gfx/gfx.c +++ b/nx/source/gfx/gfx.c @@ -258,9 +258,9 @@ void gfxExit(void) { } void gfxWaitForVsync() { - s32 tmpindex=0; + s32 tmp = 0; + svcWaitSynchronization(&tmp, &g_gfxDisplayVsyncEvent, 1, U64_MAX); svcClearEvent(g_gfxDisplayVsyncEvent); - svcWaitSynchronization(&tmpindex, &g_gfxDisplayVsyncEvent, 1, U64_MAX); } void gfxSwapBuffers() {