From: Brian Date: Thu, 12 Apr 2007 22:17:01 +0000 (-0600) Subject: fix bug in _playback_copy_to_current(): need to skip version position data (see bug... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f11604a30d9ec7ab74f03be2055f8bb8ca4fe211;p=mesa.git fix bug in _playback_copy_to_current(): need to skip version position data (see bug 10587) --- 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;