st: also check _NEW_PROGRAM flag for vertex shader constant buffers
authorBrian Paul <brianp@vmware.com>
Wed, 22 Apr 2009 13:58:25 +0000 (07:58 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 22 Apr 2009 13:58:25 +0000 (07:58 -0600)
This is a follow-on to commit c1a3b852807fb160f0cd246c1364b7336b4b947e.
Note that (at this time) wherever _NEW_PROGRAM_CONSTANTS is set we're still
setting _NEW_PROGRAM so this won't really make any difference (for now).

src/mesa/state_tracker/st_atom_constbuf.c

index 77ecd0719e64b40839d53842c5b5a8f466cfff33..3ba7b2692856bda0defeadf6736a7a1d869b98c6 100644 (file)
@@ -105,7 +105,7 @@ static void update_vs_constants(struct st_context *st )
 const struct st_tracked_state st_update_vs_constants = {
    "st_update_vs_constants",                           /* name */
    {                                                   /* dirty */
-      _NEW_PROGRAM_CONSTANTS,
+      (_NEW_PROGRAM | _NEW_PROGRAM_CONSTANTS),          /* mesa */
       ST_NEW_VERTEX_PROGRAM,                           /* st */
    },
    update_vs_constants                                 /* update */