Fixed flickering.

This commit is contained in:
yellows8 2017-12-18 14:24:58 -05:00
parent e871eb9695
commit c0780f5267

View File

@ -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);
}