fetch->vertex_size = vertex_size;
- /* Leave the clipmask/edgeflags/pad/vertex_id untouched
+ /* Leave the clipmask/edgeflags/pad/vertex_id,
+ * clip[] and whatever else in the header untouched.
*/
- dst_offset += 1 * sizeof(float);
- /* Just leave the clip[] and pre_clip_pos[] array untouched.
- */
- dst_offset += 8 * sizeof(float);
+ dst_offset = offsetof(struct vertex_header, data);
if (instance_id_index != ~0) {
num_extra_inputs++;