Mesa (master): glsl_compiler: Always log the compiler diagnostics

Ian Romanick idr at kemper.freedesktop.org
Mon Oct 7 16:59:33 UTC 2013


Module: Mesa
Branch: master
Commit: 587cd971c86a7d1d7fcbc6085f523be2e27aad8a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=587cd971c86a7d1d7fcbc6085f523be2e27aad8a

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Mon Sep  9 14:14:17 2013 -0500

glsl_compiler: Always log the compiler diagnostics

Not just when there's an error.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/glsl/main.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp
index 58e940a..aa188b1 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;
       }




More information about the mesa-commit mailing list