Mesa (master): shadowtex: fflush stdout for cygwin

Keith Whitwell keithw at kemper.freedesktop.org
Fri Apr 24 11:43:32 UTC 2009


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

Author: Keith Whitwell <keithw at vmware.com>
Date:   Fri Apr 24 12:16:29 2009 +0100

shadowtex: fflush stdout for cygwin

---

 progs/demos/shadowtex.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/progs/demos/shadowtex.c b/progs/demos/shadowtex.c
index f10a01e..dc5a4bb 100644
--- a/progs/demos/shadowtex.c
+++ b/progs/demos/shadowtex.c
@@ -788,6 +788,7 @@ Key(unsigned char key, int x, int y)
          exit(0);
          break;
    }
+   fflush(stdout);
    glutPostRedisplay();
 }
 
@@ -1014,6 +1015,7 @@ PrintHelp(void)
    printf("  <shift> + cursor keys = rotate light source\n");
    if (HaveEXTshadowFuncs)
       printf("  o = cycle through comparison modes\n");
+   fflush(stdout);
 }
 
 




More information about the mesa-commit mailing list