summaryrefslogtreecommitdiff
path: root/glsl_types.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-04-21 15:00:29 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-21 15:37:10 -0700
commit7bcd5bedcc16ad1be989cef7a05e6aa7711213e9 (patch)
treeac3909c8d54d514e2f796e715ada4e981a95adef /glsl_types.cpp
parent32898866886e218fee4dab741ba8dfcef2c2aa5c (diff)
Emit body for constructors in the right place.
Previously, the body of some vector constructors were added to the wrong function signature, and the body of matrix constructors were just being dumped in the main instruction stream.
Diffstat (limited to 'glsl_types.cpp')
-rw-r--r--glsl_types.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/glsl_types.cpp b/glsl_types.cpp
index e72a8fc39d..508a75703d 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);
}
}
}