glsl: fixed printing of structure constants.
authorPaul Berry <stereotype441@gmail.com>
Fri, 3 Jun 2011 18:23:31 +0000 (11:23 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 3 Jun 2011 18:48:49 +0000 (12:48 -0600)
commit6491e9593d5cbc5644eb02593a2f562447efdcbb
tree5c16dbfc5263e22b0dfea359f7e90d9f5a3b06a1
parent26b566e19cbfa189a6a158718f21859c0b7ed090
glsl: fixed printing of structure constants.

ir_print_visitor::visit(ir_constant *) was failing to index properly
into ir->type->fields.structure, so the first field name was being
reprinted for every field in the structure.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/glsl/ir_print_visitor.cpp