ir_to_mesa: Actually allocate the right size for constant matrix temps.

This commit is contained in:
Eric Anholt
2010-07-26 19:41:23 -07:00
parent 5b6890a388
commit c91809e1e4
+1 -1
View File
@@ -1412,7 +1412,7 @@ ir_to_mesa_visitor::visit(ir_constant *ir)
}
if (ir->type->is_matrix()) {
ir_to_mesa_src_reg mat = get_temp(glsl_type::vec4_type);
ir_to_mesa_src_reg mat = get_temp(ir->type);
ir_to_mesa_dst_reg mat_column = ir_to_mesa_dst_reg_from_src(mat);
for (i = 0; i < ir->type->matrix_columns; i++) {