glsl/builtins: Actually print the info log if reading a builtin failed.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 4 Sep 2010 07:49:23 +0000 (00:49 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 4 Sep 2010 09:19:37 +0000 (02:19 -0700)
src/glsl/builtins/tools/generate_builtins.py

index 5accc1b1208aeca1325b13e4678e2f783fa09b03..bc64b4b3b5c48cb528f6a24987de420fab0c6f05 100755 (executable)
@@ -153,6 +153,7 @@ read_builtins(GLenum target, const char *protos, const char **functions, unsigne
 
       if (st->error) {
          printf("error reading builtin: %.35s ...\\n", functions[i]);
+         printf("Info log:\\n%s\\n", st->info_log);
          talloc_free(sh);
          return NULL;
       }