vbo: deduplicate copy_vertices functions
[mesa.git] / src / mesa / vbo / vbo_save_loopback.c
index 7e9296bae20e6ba558b8f8baf1698bb446b78136..26a9f94facbe27fd0b611a1fe1c097202a076efd 100644 (file)
@@ -139,7 +139,7 @@ append_attr(GLuint *nr, struct loopback_attr la[], int i, int shift,
 {
    la[*nr].index = shift + i;
    la[*nr].offset = vao->VertexAttrib[i].RelativeOffset;
-   la[*nr].func = vert_attrfunc[vao->VertexAttrib[i].Size - 1];
+   la[*nr].func = vert_attrfunc[vao->VertexAttrib[i].Format.Size - 1];
    (*nr)++;
 }