From trunk: mesa: bind VBO_ATTRIB_XXX to correct input array when executing a display list. fix #10604

This also fixes Bill Mitchell's Fortan/plot bug.
This commit is contained in:
Brian 2007-09-14 13:43:09 -06:00
parent 1342aefcdd
commit 18a4730f5b

View file

@ -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;