glsl2: Don't flatten constructor parameters to scalars
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 26 Jun 2010 00:36:17 +0000 (17:36 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 29 Jun 2010 18:15:26 +0000 (11:15 -0700)
commit699b247661b1c70e890e478dba88253cad035969
tree730f9f20996ddd2b0b8c081be413848e274ce922
parent81c7e94466da19f9295b8eb5e4b5e587fea96284
glsl2: Don't flatten constructor parameters to scalars

Now that all scalar, vector, and matrix constructors are emitted
in-line, the parameters to these constructors should not be flattened
to a pile of scalars.  Instead, the functions that emit the in-line
constructor bodies can directly write the parameters to the correct
locations in the objects being constructed.
src/glsl/ast_function.cpp