From fd402791f909371d8f1c1381f0e16a0f08bd78e6 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 28 Apr 2009 11:49:55 +0100 Subject: progs: add fflushes for cygwin --- progs/demos/dinoshade.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'progs/demos/dinoshade.c') diff --git a/progs/demos/dinoshade.c b/progs/demos/dinoshade.c index 451da2ec89..41b19d5a92 100644 --- a/progs/demos/dinoshade.c +++ b/progs/demos/dinoshade.c @@ -624,6 +624,7 @@ redraw(void) glFinish(); end = glutGet(GLUT_ELAPSED_TIME); printf("Speed %.3g frames/sec (%d ms)\n", 1000.0/(end-start), end-start); + fflush(stdout); } glutSwapBuffers(); @@ -878,6 +879,7 @@ main(int argc, char **argv) polygonOffsetVersion = MISSING; printf("\ndinoshine: Missing polygon offset.\n"); printf(" Expect shadow depth aliasing artifacts.\n\n"); + fflush(stdout); } } -- cgit v1.2.3 From 3dfe672c851756e5ee09443dfafb1295c912da31 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 30 Apr 2009 17:03:54 -0600 Subject: demos: silence warning --- progs/demos/dinoshade.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'progs/demos/dinoshade.c') diff --git a/progs/demos/dinoshade.c b/progs/demos/dinoshade.c index 41b19d5a92..cbf8751e25 100644 --- a/progs/demos/dinoshade.c +++ b/progs/demos/dinoshade.c @@ -382,7 +382,7 @@ static GLfloat floorShadow[4][4]; static void redraw(void) { - int start, end; + int start = 0, end = 0; if (reportSpeed) { start = glutGet(GLUT_ELAPSED_TIME); -- cgit v1.2.3