dri/nouveau: Reemit the light model state when lighting goes on/off.
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 21 Mar 2010 10:49:46 +0000 (11:49 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Sun, 21 Mar 2010 10:49:46 +0000 (11:49 +0100)
src/mesa/drivers/dri/nouveau/nouveau_state.c

index ef2cc787de735518209f88b2a0df7017c4043e9f..7697090f6a662ae347bab1821e035ddf4263caca 100644 (file)
@@ -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++) {