summaryrefslogtreecommitdiff
path: root/progs/redbook
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-04-28 11:49:55 +0100
committerKeith Whitwell <keithw@vmware.com>2009-04-28 18:15:17 +0100
commitfd402791f909371d8f1c1381f0e16a0f08bd78e6 (patch)
treea3e805e4548102515aad2a5af0d9fd08c3f0652d /progs/redbook
parentb91e5f8e197793feac016242140bf489bd16071c (diff)
progs: add fflushes for cygwin
Diffstat (limited to 'progs/redbook')
-rw-r--r--progs/redbook/polyoff.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/redbook/polyoff.c b/progs/redbook/polyoff.c
index 2017b4d8ee..de34b2e767 100644
--- a/progs/redbook/polyoff.c
+++ b/progs/redbook/polyoff.c
@@ -153,6 +153,7 @@ static void Benchmark( float xdiff, float ydiff )
double seconds, fps;
printf("Benchmarking...\n");
+ fflush(stdout);
draws = 0;
startTime = glutGet(GLUT_ELAPSED_TIME);
@@ -169,6 +170,7 @@ static void Benchmark( float xdiff, float ydiff )
seconds = (double) (endTime - startTime) / 1000.0;
fps = draws / seconds;
printf("Result: fps: %g\n", fps);
+ fflush(stdout);
}
@@ -263,6 +265,7 @@ void keyboard (unsigned char key, int x, int y)
default:
break;
}
+ fflush(stdout);
}
static void