summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2015-07-20 14:19:06 -0600
committerBrian Paul <brianp@vmware.com>2015-07-20 14:19:07 -0600
commit4809f7596026b3e39b55cffcf729b8f42aa37f90 (patch)
tree4888a9d77df76f1cbbb85345591405ae2dde3a94
parent7f15fef7bef015492a2e88f359c1a0fd84082046 (diff)
downloadmesa-demos-4809f7596026b3e39b55cffcf729b8f42aa37f90.zip
mesa-demos-4809f7596026b3e39b55cffcf729b8f42aa37f90.tar.xz
util: add fflush() in ValidateShaderProgram()
So the output appears immediately on Windows.
-rw-r--r--src/util/shaderutil.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/shaderutil.c b/src/util/shaderutil.c
index 954f949..a938502 100644
--- a/src/util/shaderutil.c
+++ b/src/util/shaderutil.c
@@ -276,6 +276,7 @@ ValidateShaderProgram(GLuint program)
GLsizei len;
GetProgramInfoLog(program, 1000, &len, log);
fprintf(stderr, "Program validation error:\n%s\n", log);
+ fflush(stderr);
return 0;
}