summaryrefslogtreecommitdiff
path: root/src/mesa/vbo
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-04-12 16:17:01 -0600
committerBrian <brian@yutani.localnet.net>2007-04-12 16:17:01 -0600
commitf11604a30d9ec7ab74f03be2055f8bb8ca4fe211 (patch)
tree8f32de02ccbf4c158759b8c2307d5db196ab0bc5 /src/mesa/vbo
parent99193e4f7454bf5a9cfa0bc3ee6935d8cc85b7fa (diff)
fix bug in _playback_copy_to_current(): need to skip version position data (see bug 10587)
Diffstat (limited to 'src/mesa/vbo')
-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;