Fix gfxWaitForVsync

This commit is contained in:
plutoo 2017-12-03 00:08:35 +01:00 committed by yellows8
parent 8485facf99
commit 998980843f

View File

@ -258,9 +258,9 @@ void gfxExit(void) {
} }
void gfxWaitForVsync() { void gfxWaitForVsync() {
s32 tmpindex=0; s32 tmp = 0;
svcWaitSynchronization(&tmp, &g_gfxDisplayVsyncEvent, 1, U64_MAX);
svcClearEvent(g_gfxDisplayVsyncEvent); svcClearEvent(g_gfxDisplayVsyncEvent);
svcWaitSynchronization(&tmpindex, &g_gfxDisplayVsyncEvent, 1, U64_MAX);
} }
void gfxSwapBuffers() { void gfxSwapBuffers() {