diff options
-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++; } |