From: Brian Paul Date: Tue, 5 Nov 2013 23:58:15 +0000 (-0700) Subject: mesa: for GLSL_DUMP_ON_ERROR, also dump the info log X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36f1c6e3db6b8010ce4f06ed33e69f628b67e293;p=mesa.git mesa: for GLSL_DUMP_ON_ERROR, also dump the info log Since it's helpful to know why the shader did not compile. Also, call fflush() for Windows. Reviewed-by: José Fonseca --- diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 7da860ddf1a..1d9aac39df2 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -825,6 +825,8 @@ compile_shader(struct gl_context *ctx, GLuint shaderObj) fprintf(stderr, "GLSL source for %s shader %d:\n", _mesa_glsl_shader_target_name(sh->Type), sh->Name); fprintf(stderr, "%s\n", sh->Source); + fprintf(stderr, "Info Log:\n%s\n", sh->InfoLog); + fflush(stderr); } if (ctx->Shader.Flags & GLSL_REPORT_ERRORS) {