summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2013-09-09 14:14:17 -0500
committerIan Romanick <[email protected]>2013-10-07 09:59:23 -0700
commit587cd971c86a7d1d7fcbc6085f523be2e27aad8a (patch)
treed9250973c167ebd5db5c04e6fd81533df096cab9 /src/glsl
parent3646d65f6a70ddaf8d1e0dafde11cf21db836223 (diff)
glsl_compiler: Always log the compiler diagnostics
Not just when there's an error. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/main.cpp4
1 files changed, 3 insertions, 1 deletions
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;
}