From f11604a30d9ec7ab74f03be2055f8bb8ca4fe211 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 12 Apr 2007 16:17:01 -0600 Subject: fix bug in _playback_copy_to_current(): need to skip version position data (see bug 10587) --- src/mesa/vbo/vbo_save_draw.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/vbo/vbo_save_draw.c b/src/mesa/vbo/vbo_save_draw.c index 75cbf020d7d..a5e4081acc2 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; -- cgit v1.2.3