Demos (master): cubemap: add some fflush(stdout) calls for Windows

Brian Paul brianp at kemper.freedesktop.org
Fri Sep 21 19:04:51 UTC 2012


Module: Demos
Branch: master
Commit: dc28a80428e4f16db3b60ce4703bf6fa2651b476
URL:    http://cgit.freedesktop.org/mesa/demos/commit/?id=dc28a80428e4f16db3b60ce4703bf6fa2651b476

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Sep 21 13:02:29 2012 -0600

cubemap: add some fflush(stdout) calls for Windows

---

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

diff --git a/src/demos/cubemap.c b/src/demos/cubemap.c
index 2b1335f..2c3edbd 100644
--- a/src/demos/cubemap.c
+++ b/src/demos/cubemap.c
@@ -375,6 +375,7 @@ static void key(unsigned char k, int x, int y)
       case 27:
          exit(0);
    }
+   fflush(stdout);
    glutPostRedisplay();
 }
 
@@ -590,6 +591,7 @@ static void usage(void)
    printf("  f - toggle texture filter mode\n");
    printf("  m - toggle texgen reflection mode\n");
    printf("  z/Z - change viewing distance\n");
+   fflush(stdout);
 }
 
 




More information about the mesa-commit mailing list