glsl_compiler: Always log the compiler diagnostics

Not just when there's an error.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Ian Romanick 2013-09-09 14:14:17 -05:00
parent 3646d65f6a
commit 587cd971c8

View file

@ -371,8 +371,10 @@ main(int argc, char **argv)
compile_shader(ctx, shader);
if (!shader->CompileStatus) {
if (strlen(shader->InfoLog) > 0)
printf("Info log for %s:\n%s\n", argv[optind], shader->InfoLog);
if (!shader->CompileStatus) {
status = EXIT_FAILURE;
break;
}