projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea07a0d
)
mesa: bind VBO_ATTRIB_XXX to correct input array when
author
Xiang, Haihao
<haihao.xiang@intel.com>
Fri, 14 Sep 2007 08:26:56 +0000
(16:26 +0800)
committer
Xiang, Haihao
<haihao.xiang@intel.com>
Fri, 14 Sep 2007 08:26:56 +0000
(16:26 +0800)
executing a display list. fix #10604
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 3c6f0fccd98e41c51d311f37537f65e75e1c29fe..da7bc765b7ed0dfc38d57347ee9cf29241ffa573 100644
(file)
--- a/
src/mesa/vbo/vbo_save_draw.c
+++ b/
src/mesa/vbo/vbo_save_draw.c
@@
-132,9
+132,11
@@
static void vbo_bind_vertex_list( GLcontext *ctx,
}
for (attr = 0; attr < VBO_ATTRIB_MAX; attr++) {
- if (node->attrsz[attr]) {
+ GLuint src = map[attr];
+
+ if (node->attrsz[src]) {
arrays[attr].Ptr = (const GLubyte *)data;
- arrays[attr].Size = node->attrsz[
attr
];
+ arrays[attr].Size = node->attrsz[
src
];
arrays[attr].StrideB = node->vertex_size * sizeof(GLfloat);
arrays[attr].Stride = node->vertex_size * sizeof(GLfloat);
arrays[attr].Type = GL_FLOAT;