summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/nouveau/nv20_state_tnl.c
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-03-07 18:40:21 +0100
committerFrancisco Jerez <currojerez@riseup.net>2010-03-07 22:40:11 +0100
commit75f52d1e5210944d7e92787c637285fd83533053 (patch)
treebcef05983e0844cddec054993cc7a8f75e0a87aa /src/mesa/drivers/dri/nouveau/nv20_state_tnl.c
parent6a15edfed326a06f08ac63020dc9472e45d8a9e1 (diff)
dri/nouveau: Fix nv[12]x color sum.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nv20_state_tnl.c')
-rw-r--r--src/mesa/drivers/dri/nouveau/nv20_state_tnl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv20_state_tnl.c b/src/mesa/drivers/dri/nouveau/nv20_state_tnl.c
index 0d566064f6..43f8c72312 100644
--- a/src/mesa/drivers/dri/nouveau/nv20_state_tnl.c
+++ b/src/mesa/drivers/dri/nouveau/nv20_state_tnl.c
@@ -158,7 +158,7 @@ nv20_emit_light_model(GLcontext *ctx, int emit)
OUT_RING(chan, ((m->LocalViewer ?
NV20TCL_LIGHT_MODEL_VIEWER_LOCAL :
NV20TCL_LIGHT_MODEL_VIEWER_NONLOCAL) |
- (m->ColorControl == GL_SEPARATE_SPECULAR_COLOR ?
+ (NEED_SECONDARY_COLOR(ctx) ?
NV20TCL_LIGHT_MODEL_SEPARATE_SPECULAR :
0)));