progs/trivial: add fflushes for cygwin
[mesa.git] / progs / trivial / clear-fbo.c
index 82218ed498587c114be9b760baf2949a62e58eed..0aeb45489f2982f4769db1f5740b8839427bfb3f 100644 (file)
@@ -5,7 +5,7 @@
 #include <math.h>
 #include <string.h>
 
-#define GL_GLEXT_PROTOTYPES
+#include <GL/glew.h>
 #include <GL/glut.h>
 
 
@@ -23,6 +23,7 @@ static void Init(void)
    fprintf(stderr, "GL_RENDERER   = %s\n", (char *) glGetString(GL_RENDERER));
    fprintf(stderr, "GL_VERSION    = %s\n", (char *) glGetString(GL_VERSION));
    fprintf(stderr, "GL_VENDOR     = %s\n", (char *) glGetString(GL_VENDOR));
+   fflush(stderr);
 
 
    if (!glutExtensionSupported("GL_EXT_framebuffer_object")) {
@@ -195,6 +196,8 @@ main( int argc, char *argv[] )
        exit(1);
     }
 
+    glewInit();
+
     Init();
 
     glutReshapeFunc(Reshape);