Ensure that structure fields have non-NULL types

This commit is contained in:
Ian Romanick
2010-04-20 16:49:03 -07:00
parent 1d28b617ba
commit 73986a7a26

View File

@@ -2320,7 +2320,8 @@ ast_struct_specifier::hir(exec_list *instructions,
? process_array_type(decl_type, decl->array_size, state)
: decl_type;
fields[i].type = field_type;
fields[i].type = (field_type != NULL)
? field_type : glsl_type::error_type;
fields[i].name = decl->identifier;
i++;
}