dri/nouveau: Fix nv[12]x color sum.
[mesa.git] / src / mesa / drivers / dri / nouveau / nv20_state_tnl.c
index 0d566064f6776d10c46c02d9a1595fabe5c41970..43f8c7231226fc8712919f4e0a9d680690f1cf56 100644 (file)
@@ -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)));