From 587cd971c86a7d1d7fcbc6085f523be2e27aad8a Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 9 Sep 2013 14:14:17 -0500 Subject: [PATCH] glsl_compiler: Always log the compiler diagnostics Not just when there's an error. Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke --- src/glsl/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index 58e940a34b0..aa188b1f158 100644 --- a/src/glsl/main.cpp +++ b/src/glsl/main.cpp @@ -371,8 +371,10 @@ main(int argc, char **argv) compile_shader(ctx, shader); - if (!shader->CompileStatus) { + if (strlen(shader->InfoLog) > 0) printf("Info log for %s:\n%s\n", argv[optind], shader->InfoLog); + + if (!shader->CompileStatus) { status = EXIT_FAILURE; break; } -- 2.11.0