mesa/st: Flush stdout after pritingin the GLSL.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 14 Nov 2011 14:43:25 +0000 (14:43 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 14 Nov 2011 14:43:25 +0000 (14:43 +0000)
Otherwise it gets all garbled with stderr.

src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index b133164c388e62e457d8e2fcf727a4749743bb4d..17b611783a3599eeff4369006377ed36414a03e0 100644 (file)
@@ -4991,6 +4991,7 @@ get_mesa_program(struct gl_context *ctx,
       _mesa_print_ir(shader->ir, NULL);
       printf("\n");
       printf("\n");
+      fflush(stdout);
    }
 
    prog->Instructions = NULL;