mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 03:28:09 +02:00
Import all texture coordinate arrays. Import them only once.
This commit is contained in:
parent
138b7ef4d9
commit
884b5ade86
1 changed files with 4 additions and 5 deletions
|
|
@ -305,11 +305,10 @@ void _tnl_vb_bind_arrays( GLcontext *ctx, GLint start, GLint end)
|
|||
VB->AttribPtr[_TNL_ATTRIB_FOG] = &tmp->FogCoord;
|
||||
}
|
||||
else if (index >= VERT_ATTRIB_TEX0 && index <= VERT_ATTRIB_TEX7) {
|
||||
for (i = 0; i < ctx->Const.MaxTextureUnits; i++) {
|
||||
_tnl_import_texcoord( ctx, i, GL_FALSE, GL_FALSE );
|
||||
tmp->TexCoord[i].count = VB->Count;
|
||||
VB->AttribPtr[_TNL_ATTRIB_TEX0 + i] = &tmp->TexCoord[i];
|
||||
}
|
||||
i = index - VERT_ATTRIB_TEX0;
|
||||
_tnl_import_texcoord( ctx, i, GL_FALSE, GL_FALSE );
|
||||
tmp->TexCoord[i].count = VB->Count;
|
||||
VB->AttribPtr[_TNL_ATTRIB_TEX0 + i] = &tmp->TexCoord[i];
|
||||
}
|
||||
else {
|
||||
_tnl_constant_attrib(tnl, tmp, index);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue