summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2005-01-04 12:53:41 +0000
committerKeith Whitwell <[email protected]>2005-01-04 12:53:41 +0000
commite024cae14bc19c1ce7519d3d05140e3e63383ddf (patch)
treeed663df24c2ff278365afff6616d3f971a250504
parentb6ab7a1bf1b6d4c6e44c4b167e072c4169e6923c (diff)
Turn specular lighting state on/off appropriately.
-rw-r--r--src/mesa/drivers/dri/unichrome/via_state.c5
1 files changed, 5 insertions, 0 deletions
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;
}