glsl: make use of glsl_type::is_record()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
This commit is contained in:
@@ -149,8 +149,7 @@ print_type(FILE *f, const glsl_type *t)
|
||||
fprintf(f, "(array ");
|
||||
print_type(f, t->fields.array);
|
||||
fprintf(f, " %u)", t->length);
|
||||
} else if ((t->base_type == GLSL_TYPE_STRUCT)
|
||||
&& !is_gl_identifier(t->name)) {
|
||||
} else if (t->is_record() && !is_gl_identifier(t->name)) {
|
||||
fprintf(f, "%s@%p", t->name, (void *) t);
|
||||
} else {
|
||||
fprintf(f, "%s", t->name);
|
||||
|
Reference in New Issue
Block a user