From e024cae14bc19c1ce7519d3d05140e3e63383ddf Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 4 Jan 2005 12:53:41 +0000 Subject: Turn specular lighting state on/off appropriately. --- src/mesa/drivers/dri/unichrome/via_state.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesa/drivers/dri/unichrome/via_state.c b/src/mesa/drivers/dri/unichrome/via_state.c index 07d03d495f7..84731a316a7 100644 --- a/src/mesa/drivers/dri/unichrome/via_state.c +++ b/src/mesa/drivers/dri/unichrome/via_state.c @@ -1559,6 +1559,11 @@ void viaValidateState( GLcontext *ctx ) if (vmesa->newState & _NEW_STENCIL) viaChooseStencilState(ctx); + if (ctx->_TriangleCaps & DD_SEPARATE_SPECULAR) + vmesa->regEnable |= HC_HenCS_MASK; + else + vmesa->regEnable &= ~HC_HenCS_MASK; + vmesa->newEmitState |= vmesa->newState; vmesa->newState = 0; } -- cgit v1.2.3