mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
mesa: use MAX_ values instead of literals
This commit is contained in:
parent
d2f4c2b632
commit
d4fb7615b5
1 changed files with 2 additions and 2 deletions
|
|
@ -115,7 +115,7 @@ static void bind_array_obj( GLcontext *ctx )
|
|||
}
|
||||
exec->array.legacy_array[VERT_ATTRIB_EDGEFLAG] = &arrayObj->EdgeFlag;
|
||||
|
||||
for (i = 0; i < 8; i++)
|
||||
for (i = 0; i < MAX_TEXTURE_COORD_UNITS; i++)
|
||||
exec->array.legacy_array[VERT_ATTRIB_TEX0 + i] = &arrayObj->TexCoord[i];
|
||||
|
||||
for (i = 0; i < VERT_ATTRIB_MAX; i++)
|
||||
|
|
@ -216,7 +216,7 @@ static void recalculate_input_bindings( GLcontext *ctx )
|
|||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < 16; i++) {
|
||||
for (i = 0; i < MAX_VERTEX_ATTRIBS; i++) {
|
||||
if (exec->array.generic_array[i]->Enabled)
|
||||
inputs[VERT_ATTRIB_GENERIC0 + i] = exec->array.generic_array[i];
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue