Mesa (master): util/debug: need to fflush(stderr) on windows

Keith Whitwell keithw at kemper.freedesktop.org
Fri Feb 20 14:27:38 UTC 2009


Module: Mesa
Branch: master
Commit: 02ab1eaed7b2b14c5478eeb24712994d4bed3d2f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=02ab1eaed7b2b14c5478eeb24712994d4bed3d2f

Author: Keith Whitwell <keithw at vmware.com>
Date:   Fri Feb 20 14:27:23 2009 +0000

util/debug:  need to fflush(stderr) on windows

Hard to believe... but true.

---

 src/gallium/auxiliary/util/u_debug.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c
index 0ddda69..e05c419 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)




More information about the mesa-commit mailing list