mesa: fix bug in evaluation of structure fields

Fixes incorrect size information.  See bug 19273.
This commit is contained in:
Brian Paul
2008-12-30 17:50:39 -07:00
parent c6537ac8b8
commit e8d7db31e2
+1 -3
View File
@@ -2002,9 +2002,7 @@ emit_struct_field(slang_emit_info *emitInfo, slang_ir_node *n)
_slang_copy_ir_storage(n->Store, n->Children[0]->Store);
n->Store->Index = n->Children[0]->Store->Index + fieldOffset / 4;
/* XXX test this:
n->Store->Index += fieldOffset / 4;
*/
n->Store->Size = fieldSize;
switch (fieldSize) {
case 1: