diff options
-rw-r--r-- | glsl_types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glsl_types.cpp b/glsl_types.cpp index e72a8fc..508a757 100644 --- a/glsl_types.cpp +++ b/glsl_types.cpp @@ -454,7 +454,7 @@ generate_constructor(glsl_symbol_table *symtab, const struct glsl_type *types, declarations); f->add_signature(vec_sig); - generate_vec_body_from_N_scalars(&sig->body, declarations); + generate_vec_body_from_N_scalars(&vec_sig->body, declarations); } else { assert(types[i].is_matrix()); @@ -467,7 +467,7 @@ generate_constructor(glsl_symbol_table *symtab, const struct glsl_type *types, declarations); f->add_signature(mat_sig); - generate_mat_body_from_N_scalars(instructions, declarations); + generate_mat_body_from_N_scalars(&mat_sig->body, declarations); } } } |