Fix automation recording (#3523)

This commit is contained in:
ubkp
2023-11-11 12:06:23 -03:00
committed by GitHub
parent d32ebbe716
commit 9634c84e1c

View File

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