summaryrefslogtreecommitdiff
path: root/src/demos/fire.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2015-06-22 13:42:44 -0600
committerBrian Paul <brianp@vmware.com>2015-06-22 13:43:17 -0600
commit3d5e8e181a3d65ffd41a17110a8e552244d9f7bd (patch)
treee4fb3eb912120f2a8572129f89f45b06582c287a /src/demos/fire.c
parentbf5ae602db3ff5d38b73c969c4b0aee2bf25bd73 (diff)
demos: flush stdout after printing frame rateHEADmaster
To get immediate output on Windows. Trivial.
Diffstat (limited to 'src/demos/fire.c')
-rw-r--r--src/demos/fire.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/demos/fire.c b/src/demos/fire.c
index c40278ba..34fac440 100644
--- a/src/demos/fire.c
+++ b/src/demos/fire.c
@@ -529,6 +529,7 @@ drawfire(void)
GLfloat fps = Frames / seconds;
sprintf(frbuf, "Frame rate: %f", fps);
printf("%s\n", frbuf);
+ fflush(stdout);
T0 = t;
Frames = 0;
}