commit | 4d962e66e319191d5b94291b6f55d720df71130a | [log] [tgz] |
---|---|---|
author | Ian Romanick <ian.d.romanick@intel.com> | Fri Jul 02 14:43:01 2010 -0700 |
committer | Ian Romanick <ian.d.romanick@intel.com> | Fri Jul 02 14:57:07 2010 -0700 |
tree | 3da98f271a752652cfa1279e2bc5d9b8b2baa44e | |
parent | de75dfac4ea2cad64dc91f6ac16fe205b5015af6 [diff] [blame] |
glsl2: Print the linking info log in the stand-alone compiler
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index 16bbc8c..9bed2c6 100644 --- a/src/glsl/main.cpp +++ b/src/glsl/main.cpp
@@ -266,6 +266,9 @@ 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);