glsl2: Print the linking info log in the stand-alone compiler
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 2 Jul 2010 21:43:01 +0000 (14:43 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 2 Jul 2010 21:57:07 +0000 (14:57 -0700)
src/glsl/main.cpp

index 16bbc8cd3f1a4c564f931bfc308200bbc9dcf94f..9bed2c6bccc7c75919460da36d2e4133f4bc8d1f 100644 (file)
@@ -266,6 +266,9 @@ main(int argc, char **argv)
    if ((status == EXIT_SUCCESS) && do_link)  {
       link_shaders(whole_program);
       status = (whole_program->LinkStatus) ? EXIT_SUCCESS : EXIT_FAILURE;
+
+      if (strlen(whole_program->InfoLog) > 0)
+        printf("Info log for linking:\n%s\n", whole_program->InfoLog);
    }
 
    talloc_free(whole_program);