shadowtex: fflush stdout for cygwin
authorKeith Whitwell <keithw@vmware.com>
Fri, 24 Apr 2009 11:16:29 +0000 (12:16 +0100)
committerKeith Whitwell <keithw@vmware.com>
Fri, 24 Apr 2009 11:16:39 +0000 (12:16 +0100)
progs/demos/shadowtex.c

index f10a01ec26557919b2b01174fed0d3f710dc2e0f..dc5a4bbc480b8e4a4c780af0a7b62958ed449e48 100644 (file)
@@ -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);
 }