diff --git a/src/Cafe/OS/libs/gx2/GX2_Event.cpp b/src/Cafe/OS/libs/gx2/GX2_Event.cpp index 645f0a79..3bb8e6a2 100644 --- a/src/Cafe/OS/libs/gx2/GX2_Event.cpp +++ b/src/Cafe/OS/libs/gx2/GX2_Event.cpp @@ -214,7 +214,7 @@ namespace GX2 __OSUnlockScheduler(); } - void GX2DrawDone() + bool GX2DrawDone() { // optional force full sync (texture readback and occlusion queries) bool forceFullSync = false; @@ -231,7 +231,7 @@ namespace GX2 GX2Command_Flush(0x100, true); uint64 ts = GX2GetLastSubmittedTimeStamp(); - GX2WaitTimeStamp(ts); + return GX2WaitTimeStamp(ts); } void GX2Init_event() diff --git a/src/Cafe/OS/libs/gx2/GX2_Event.h b/src/Cafe/OS/libs/gx2/GX2_Event.h index 09cb073c..8795aaa3 100644 --- a/src/Cafe/OS/libs/gx2/GX2_Event.h +++ b/src/Cafe/OS/libs/gx2/GX2_Event.h @@ -8,7 +8,7 @@ namespace GX2 void GX2EventInit(); void GX2WaitForVsync(); void GX2WaitForFlip(); - void GX2DrawDone(); + bool GX2DrawDone(); enum class GX2CallbackEventType {