diff options
author | Keith Whitwell <[email protected]> | 2001-04-09 14:47:34 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2001-04-09 14:47:34 +0000 |
commit | 8a09c3a34bae4c262512d3a8ec3630732a686206 (patch) | |
tree | 8146d0d59584913bdb74c7caed92a043bc88ba6e /src/mesa/tnl/t_imm_exec.c | |
parent | c818d6cce55098f48e953f1b7c96bdf188006bb6 (diff) |
Perform fixup on material values
Diffstat (limited to 'src/mesa/tnl/t_imm_exec.c')
-rw-r--r-- | src/mesa/tnl/t_imm_exec.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/tnl/t_imm_exec.c b/src/mesa/tnl/t_imm_exec.c index 888d8c34c33..a5752535908 100644 --- a/src/mesa/tnl/t_imm_exec.c +++ b/src/mesa/tnl/t_imm_exec.c @@ -1,4 +1,4 @@ -/* $Id: t_imm_exec.c,v 1.16 2001/03/12 00:48:43 gareth Exp $ */ +/* $Id: t_imm_exec.c,v 1.17 2001/04/09 14:47:34 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -77,9 +77,13 @@ void _tnl_reset_input( GLcontext *ctx, IM->BeginState = beginstate; IM->SavedBeginState = savedbeginstate; IM->TexSize = 0; - IM->LastMaterial = 0; + IM->LastMaterial = IM->Start; IM->MaterialOrMask = 0; + if (IM->MaterialMask) + IM->MaterialMask[IM->Start] = 0; + + IM->ArrayEltFlags = ~ctx->Array._Enabled; IM->ArrayEltIncr = ctx->Array.Vertex.Enabled ? 1 : 0; IM->ArrayEltFlush = !ctx->Array.LockCount; |