summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_vertex_generic.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2009-11-17 23:38:35 -0800
committerEric Anholt <[email protected]>2009-11-19 11:47:05 +0100
commitfc9a2970dc539b21b035ea0a770ec69822962145 (patch)
tree2b5e96f0bc0ac1540936dfc349e082de2e839d11 /src/mesa/tnl/t_vertex_generic.c
parent165b860da6f16ef4817a4959774a57f57ba3756d (diff)
tnl: Replace deprecated IndexPtr[] with AttribPtr[] or new BackfaceIndexPtr
Diffstat (limited to 'src/mesa/tnl/t_vertex_generic.c')
-rw-r--r--src/mesa/tnl/t_vertex_generic.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/tnl/t_vertex_generic.c b/src/mesa/tnl/t_vertex_generic.c
index 9812f8c8081..f97ad7c2ed3 100644
--- a/src/mesa/tnl/t_vertex_generic.c
+++ b/src/mesa/tnl/t_vertex_generic.c
@@ -1115,10 +1115,10 @@ void _tnl_generic_interp_extras( GLcontext *ctx,
VB->SecondaryColorPtr[1]->data[in] );
}
- if (VB->IndexPtr[1]) {
- VB->IndexPtr[1]->data[dst][0] = LINTERP( t,
- VB->IndexPtr[1]->data[out][0],
- VB->IndexPtr[1]->data[in][0] );
+ if (VB->BackfaceIndexPtr) {
+ VB->BackfaceIndexPtr->data[dst][0] = LINTERP( t,
+ VB->BackfaceIndexPtr->data[out][0],
+ VB->BackfaceIndexPtr->data[in][0] );
}
if (VB->EdgeFlag) {
@@ -1145,8 +1145,8 @@ void _tnl_generic_copy_pv_extras( GLcontext *ctx,
VB->SecondaryColorPtr[1]->data[src] );
}
- if (VB->IndexPtr[1]) {
- VB->IndexPtr[1]->data[dst][0] = VB->IndexPtr[1]->data[src][0];
+ if (VB->BackfaceIndexPtr) {
+ VB->BackfaceIndexPtr->data[dst][0] = VB->BackfaceIndexPtr->data[src][0];
}
_tnl_generic_copy_pv(ctx, dst, src);