Demos (master): mipmap_limits: 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: 806cfe682d68978a8e242c4edeec35cc4532f29c
URL:    http://cgit.freedesktop.org/mesa/demos/commit/?id=806cfe682d68978a8e242c4edeec35cc4532f29c

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

mipmap_limits: add some fflush(stdout) calls for Windows

---

 src/tests/mipmap_limits.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/tests/mipmap_limits.c b/src/tests/mipmap_limits.c
index 9b50843..fb297de 100644
--- a/src/tests/mipmap_limits.c
+++ b/src/tests/mipmap_limits.c
@@ -287,6 +287,8 @@ display(void)
       ("BASE_LEVEL=%d  MAX_LEVEL=%d  MIN_LOD=%.2g  MAX_LOD=%.2g  Bias=%.2g  Filter=%s/%s\n",
        BaseLevel, MaxLevel, MinLod, MaxLod, LodBias, min_filters[min_filter].name,
        NearestFilter ? "NEAREST" : "LINEAR");
+   fflush(stdout);
+
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_BASE_LEVEL, BaseLevel);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, MaxLevel);
 
@@ -342,6 +344,7 @@ usage(void)
    printf("  g      toggle nearest/linear magnification filter\n");
    printf("  t      toggle texture color/image\n");
    printf("  SPACE  reset values\n");
+   fflush(stdout);
 }
 
 static void




More information about the mesa-commit mailing list