diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2004-01-28 08:21:05 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2004-01-28 08:21:05 +0000 |
commit | 43b57728340e70827a114c384192ed319abdb5c6 (patch) | |
tree | 65293082fd34070922248f58bd36df5eee23174e /src/mesa/drivers/dri/i830 | |
parent | c78a89d761a104dfe92ab42d3d52bb69c43105c1 (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/i830')
-rw-r--r-- | src/mesa/drivers/dri/i830/i830_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i830/i830_state.c b/src/mesa/drivers/dri/i830/i830_state.c index 7c80e8b7d2..0fde909571 100644 --- a/src/mesa/drivers/dri/i830/i830_state.c +++ b/src/mesa/drivers/dri/i830/i830_state.c @@ -979,7 +979,7 @@ static void update_specular( GLcontext *ctx ) I830_STATECHANGE(imesa, I830_UPLOAD_CTX); imesa->Setup[I830_CTXREG_ENABLES_1] &= ~ENABLE_SPEC_ADD_MASK; - if (ctx->_TriangleCaps & DD_SEPARATE_SPECULAR) + if (NEED_SECONDARY_COLOR(ctx)) imesa->Setup[I830_CTXREG_ENABLES_1] |= ENABLE_SPEC_ADD; else imesa->Setup[I830_CTXREG_ENABLES_1] |= DISABLE_SPEC_ADD; |