diff options
author | Keith Whitwell <[email protected]> | 2005-01-04 12:53:41 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2005-01-04 12:53:41 +0000 |
commit | e024cae14bc19c1ce7519d3d05140e3e63383ddf (patch) | |
tree | ed663df24c2ff278365afff6616d3f971a250504 /src | |
parent | b6ab7a1bf1b6d4c6e44c4b167e072c4169e6923c (diff) |
Turn specular lighting state on/off appropriately.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/unichrome/via_state.c | 5 |
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; } |