diff options
author | Ian Romanick <[email protected]> | 2010-04-20 16:49:03 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-04-28 18:22:54 -0700 |
commit | 73986a7a262807ab2cfd6d46ae17cfc7a30cdfec (patch) | |
tree | 1352b931c0c43e537926de2f788b307079aad8b5 | |
parent | 1d28b617ba66cfcb1641c9f516146d51aa82b118 (diff) |
Ensure that structure fields have non-NULL types
-rw-r--r-- | ast_to_hir.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ast_to_hir.cpp b/ast_to_hir.cpp index a29a49d98dd..9b39d1f05b9 100644 --- a/ast_to_hir.cpp +++ b/ast_to_hir.cpp @@ -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++; } |