util/debug: need to fflush(stderr) on windows
authorKeith Whitwell <keithw@vmware.com>
Fri, 20 Feb 2009 14:27:23 +0000 (14:27 +0000)
committerKeith Whitwell <keithw@vmware.com>
Fri, 20 Feb 2009 14:27:23 +0000 (14:27 +0000)
Hard to believe... but true.

src/gallium/auxiliary/util/u_debug.c

index 0ddda69884922f962d3b2ef3c18e83fda19c2e07..e05c419b2f3b7099791b7eddf6118f6aa3533c3e 100644 (file)
@@ -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)