From: Keith Whitwell Date: Tue, 4 Jan 2005 12:53:41 +0000 (+0000) Subject: Turn specular lighting state on/off appropriately. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e024cae14bc19c1ce7519d3d05140e3e63383ddf;p=mesa.git Turn specular lighting state on/off appropriately. --- 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; }