mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 15:40:46 +02:00
mesa: fix loop over generic attribs in update_arrays()
This commit is contained in:
parent
c3538969e1
commit
1045481dd9
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ update_arrays( GLcontext *ctx )
|
|||
|
||||
/* 16..31 */
|
||||
if (ctx->VertexProgram._Current) {
|
||||
for (i = VERT_ATTRIB_GENERIC0; i < VERT_ATTRIB_MAX; i++) {
|
||||
for (i = 0; i < Elements(ctx->Array.ArrayObj->VertexAttrib); i++) {
|
||||
if (ctx->Array.ArrayObj->VertexAttrib[i].Enabled) {
|
||||
min = MIN2(min, ctx->Array.ArrayObj->VertexAttrib[i]._MaxElement);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue