mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
Fix gfxWaitForVsync
This commit is contained in:
parent
8485facf99
commit
998980843f
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user