From 33cb04ea9c840778b066535de97bd7b13e16847c Mon Sep 17 00:00:00 2001 From: Ilya Shurumov Date: Mon, 15 Feb 2021 01:08:57 +0600 Subject: [PATCH] - [Psy-X] added log flush --- src_rebuild/PsyX/src/PSYX.C | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src_rebuild/PsyX/src/PSYX.C b/src_rebuild/PsyX/src/PSYX.C index 6c0e32c1..24cfc634 100644 --- a/src_rebuild/PsyX/src/PSYX.C +++ b/src_rebuild/PsyX/src/PSYX.C @@ -190,6 +190,12 @@ void PsyX_Log_Finalise() g_logStream = NULL; } +void PsyX_Log_Flush() +{ + if (g_logStream) + fflush(g_logStream); +} + // spew types typedef enum { @@ -499,6 +505,8 @@ bool PsyX_BeginScene() begin_scene_flag = true; + PsyX_Log_Flush(); + return true; }