summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesa/vbo/vbo_save_draw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_save_draw.c b/src/mesa/vbo/vbo_save_draw.c
index 75cbf020d7..a5e4081acc 100644
--- a/src/mesa/vbo/vbo_save_draw.c
+++ b/src/mesa/vbo/vbo_save_draw.c
@@ -58,6 +58,8 @@ static void _playback_copy_to_current( GLcontext *ctx,
node->vertex_size * sizeof(GLfloat),
data, node->vertex_store->bufferobj );
+ data += node->attrsz[0]; /* skip version position */
+
for (i = VBO_ATTRIB_POS+1 ; i < VBO_ATTRIB_MAX ; i++) {
if (node->attrsz[i]) {
GLfloat *current = (GLfloat *)vbo->currval[i].Ptr;