mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
Fixed flickering.
This commit is contained in:
parent
e871eb9695
commit
c0780f5267
@ -302,6 +302,7 @@ static void _waitevent(Handle *handle) {
|
|||||||
|
|
||||||
void gfxWaitForVsync() {
|
void gfxWaitForVsync() {
|
||||||
_waitevent(&g_gfxDisplayVsyncEvent);
|
_waitevent(&g_gfxDisplayVsyncEvent);
|
||||||
|
_waitevent(&g_gfxDisplayVsyncEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void gfxSwapBuffers() {
|
void gfxSwapBuffers() {
|
||||||
@ -311,11 +312,6 @@ void gfxSwapBuffers() {
|
|||||||
|
|
||||||
if (R_SUCCEEDED(rc)) rc = _gfxDequeueBuffer();
|
if (R_SUCCEEDED(rc)) rc = _gfxDequeueBuffer();
|
||||||
|
|
||||||
#ifdef BUFFERSWAP_DELAY_HACK
|
|
||||||
gfxWaitForVsync();
|
|
||||||
gfxWaitForVsync();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (R_FAILED(rc)) fatalSimple(rc);
|
if (R_FAILED(rc)) fatalSimple(rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user