mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-30 23:28:06 +02:00
mesa: bind VBO_ATTRIB_XXX to correct input array when
executing a display list. fix #10604
This commit is contained in:
parent
ea07a0df9a
commit
e04c58e068
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue