From: Francisco Jerez Date: Sun, 21 Mar 2010 10:49:46 +0000 (+0100) Subject: dri/nouveau: Reemit the light model state when lighting goes on/off. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c48226e81d6a070a4bbaf42e0a310a868bcbe935;p=mesa.git dri/nouveau: Reemit the light model state when lighting goes on/off. --- diff --git a/src/mesa/drivers/dri/nouveau/nouveau_state.c b/src/mesa/drivers/dri/nouveau/nouveau_state.c index ef2cc787de7..7697090f6a6 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++) {