mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
Fixed flickering.
This commit is contained in:
parent
e871eb9695
commit
c0780f5267
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user