Fix automation recording

This commit is contained in:
ubkp 2023-11-11 11:45:28 -03:00
parent bdcca4510d
commit 73bc12a114

View File

@ -865,6 +865,10 @@ void EndDrawing(void)
}
#endif
#if defined(SUPPORT_AUTOMATION_EVENTS)
if (automationEventRecording) RecordAutomationEvent(); // Event recording
#endif
#if !defined(SUPPORT_CUSTOM_FRAME_CONTROL)
SwapScreenBuffer(); // Copy back buffer to front buffer (screen)
@ -928,10 +932,6 @@ void EndDrawing(void)
}
#endif // SUPPORT_SCREEN_CAPTURE
#if defined(SUPPORT_AUTOMATION_EVENTS)
if (automationEventRecording) RecordAutomationEvent(); // Event recording
#endif
CORE.Time.frameCounter++;
}