projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99193e4
)
fix bug in _playback_copy_to_current(): need to skip version position data (see bug...
author
Brian
<brian@yutani.localnet.net>
Thu, 12 Apr 2007 22:17:01 +0000
(16:17 -0600)
committer
Brian
<brian@yutani.localnet.net>
Thu, 12 Apr 2007 22:17:01 +0000
(16:17 -0600)
src/mesa/vbo/vbo_save_draw.c
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_save_draw.c
b/src/mesa/vbo/vbo_save_draw.c
index 75cbf020d7dc4ab643948b086a2dcd23b4110cf2..a5e4081acc23a61b7d16fe7bc3ebc50be5b243b1 100644
(file)
--- 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;