diff options
Diffstat (limited to 'src/mesa/tnl/t_vb_texmat.c')
-rw-r--r-- | src/mesa/tnl/t_vb_texmat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/tnl/t_vb_texmat.c b/src/mesa/tnl/t_vb_texmat.c index 1feb0b750e..fa9222c0f1 100644 --- a/src/mesa/tnl/t_vb_texmat.c +++ b/src/mesa/tnl/t_vb_texmat.c @@ -74,10 +74,10 @@ static GLboolean run_texmat_stage( GLcontext *ctx, if (ctx->Texture._TexMatEnabled & ENABLE_TEXMAT(i)) { (void) TransformRaw( &store->texcoord[i], ctx->TextureMatrixStack[i].Top, - VB->TexCoordPtr[i]); + VB->AttribPtr[_TNL_ATTRIB_TEX0 + i]); - VB->AttribPtr[VERT_ATTRIB_TEX0+i] = - VB->TexCoordPtr[i] = &store->texcoord[i]; + VB->TexCoordPtr[i] = + VB->AttribPtr[VERT_ATTRIB_TEX0+i] = &store->texcoord[i]; } } |