From: Keith Whitwell Date: Fri, 20 Feb 2009 14:27:23 +0000 (+0000) Subject: util/debug: need to fflush(stderr) on windows X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02ab1eaed7b2b14c5478eeb24712994d4bed3d2f;p=mesa.git util/debug: need to fflush(stderr) on windows Hard to believe... but true. --- diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c index 0ddda698849..e05c419b2f3 100644 --- a/src/gallium/auxiliary/util/u_debug.c +++ b/src/gallium/auxiliary/util/u_debug.c @@ -110,6 +110,7 @@ void _debug_vprintf(const char *format, va_list ap) if(GetConsoleWindow() && !IsDebuggerPresent()) { vfprintf(stderr, format, ap); + fflush(stderr); } #elif defined(PIPE_SUBSYSTEM_WINDOWS_CE)