make sure optimized fog params get updated
authorRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 22 May 2007 00:52:39 +0000 (02:52 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 22 May 2007 01:32:25 +0000 (03:32 +0200)
src/mesa/shader/prog_statevars.c

index 975a617ac898202ccd0181b182f6c37ac0cf75da..d37d7fb9bf4d2f45a28eed84c76ff24afef11119 100644 (file)
@@ -507,6 +507,8 @@ _mesa_program_state_flags(const gl_state_index state[STATE_LENGTH])
       switch (state[1]) {
       case STATE_TEXRECT_SCALE:
         return _NEW_TEXTURE;
+      case STATE_FOG_PARAMS_OPTIMIZED:
+        return _NEW_FOG;
       default:
          /* unknown state indexes are silently ignored and
          *  no flag set, since it is handled by the driver.