summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2016-09-13 15:11:41 -0600
committerBrian Paul <brianp@vmware.com>2017-04-26 11:30:25 -0600
commit17e46fdef7076c2506f343c16f8056d71361dde6 (patch)
treec57a6a7f221b56c4b5bc7bc033ee657b7e654830
parent8b6f44a8e9b1f0f59e4755052276dfa9fcb1df77 (diff)
downloadmesa-demos-17e46fdef7076c2506f343c16f8056d71361dde6.zip
mesa-demos-17e46fdef7076c2506f343c16f8056d71361dde6.tar.xz
gears: call fflush() after printf() for Windows
Trivial.
-rw-r--r--src/demos/gears.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/demos/gears.c b/src/demos/gears.c
index 113ec30..418c204 100644
--- a/src/demos/gears.c
+++ b/src/demos/gears.c
@@ -368,10 +368,12 @@ init(int argc, char *argv[])
printf("GL_VERSION = %s\n", (char *) glGetString(GL_VERSION));
printf("GL_VENDOR = %s\n", (char *) glGetString(GL_VENDOR));
printf("GL_EXTENSIONS = %s\n", (char *) glGetString(GL_EXTENSIONS));
+ fflush(stdout);
}
else if ( strcmp(argv[i], "-exit")==0) {
autoexit = 30;
printf("Auto Exit after %i seconds.\n", autoexit );
+ fflush(stdout);
}
else if (strcmp(argv[i], "-noanim") == 0) {
Animate = GL_FALSE;