summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/mga
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2004-01-28 08:21:05 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2004-01-28 08:21:05 +0000
commit43b57728340e70827a114c384192ed319abdb5c6 (patch)
tree65293082fd34070922248f58bd36df5eee23174e /src/mesa/drivers/dri/mga
parentc78a89d761a104dfe92ab42d3d52bb69c43105c1 (diff)
Use NEED_SECONDARY_COLOR() for checking specular state at all times
when ctx->_TriangleCaps might be inaccurate (ie while ctx->NewState might be non-zero).
Diffstat (limited to 'src/mesa/drivers/dri/mga')
-rw-r--r--src/mesa/drivers/dri/mga/mgastate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/mga/mgastate.c b/src/mesa/drivers/dri/mga/mgastate.c
index 47c425d7ca..2066b93436 100644
--- a/src/mesa/drivers/dri/mga/mgastate.c
+++ b/src/mesa/drivers/dri/mga/mgastate.c
@@ -483,7 +483,7 @@ static void updateSpecularLighting( GLcontext *ctx )
mgaContextPtr mmesa = MGA_CONTEXT(ctx);
unsigned int specen;
- specen = (ctx->_TriangleCaps & DD_SEPARATE_SPECULAR) ? TMC_specen_enable : 0;
+ specen = NEED_SECONDARY_COLOR(ctx) ? TMC_specen_enable : 0;
if ( specen != mmesa->hw.specen ) {
mmesa->hw.specen = specen;