summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-03-21 11:49:46 +0100
committerFrancisco Jerez <currojerez@riseup.net>2010-03-21 11:49:46 +0100
commitc48226e81d6a070a4bbaf42e0a310a868bcbe935 (patch)
treebf9ad7c00fabb695995a5b58b13186f8b7ce6996 /src
parent7f1f4c14eced51bf3f43764e2864693ba1c4a6d5 (diff)
dri/nouveau: Reemit the light model state when lighting goes on/off.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_state.c b/src/mesa/drivers/dri/nouveau/nouveau_state.c
index ef2cc787de..7697090f6a 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_state.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_state.c
@@ -189,6 +189,7 @@ nouveau_enable(GLcontext *ctx, GLenum cap, GLboolean state)
case GL_LIGHTING:
context_dirty(ctx, FRAG);
context_dirty(ctx, MODELVIEW);
+ context_dirty(ctx, LIGHT_MODEL);
context_dirty(ctx, LIGHT_ENABLE);
for (i = 0; i < MAX_LIGHTS; i++) {