summaryrefslogtreecommitdiffstats
path: root/src/glsl/main.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-07-02 14:43:01 -0700
committerIan Romanick <[email protected]>2010-07-02 14:57:07 -0700
commit4d962e66e319191d5b94291b6f55d720df71130a (patch)
tree3da98f271a752652cfa1279e2bc5d9b8b2baa44e /src/glsl/main.cpp
parentde75dfac4ea2cad64dc91f6ac16fe205b5015af6 (diff)
glsl2: Print the linking info log in the stand-alone compiler
Diffstat (limited to 'src/glsl/main.cpp')
-rw-r--r--src/glsl/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp
index 16bbc8cd3f1..9bed2c6bccc 100644
--- a/src/glsl/main.cpp
+++ b/src/glsl/main.cpp
@@ -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);