mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 02:20:11 +01:00
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:
parent
3646d65f6a
commit
587cd971c8
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue