Print out the info log if compilation fails.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 19 Jun 2010 18:31:01 +0000 (11:31 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 19 Jun 2010 18:44:22 +0000 (11:44 -0700)
main.cpp

index a613334d5cd20349de49f1363361d27caa908997..a6d6c47bfda9a0ed7188f31f92765aadf7ea8df4 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -222,6 +222,7 @@ main(int argc, char **argv)
       compile_shader(shader);
 
       if (!shader->CompileStatus) {
+        printf("Info log for %s:\n%s\n", argv[optind], shader->InfoLog);
         status = EXIT_FAILURE;
         break;
       }