* Inactive states are shader states not used by shaders at the moment.
*/
st->dirty |= ctx->NewDriverState & st->active_states & ST_ALL_STATES_MASK;
- ctx->NewDriverState = 0;
+ ctx->NewDriverState &= ~st->dirty;
/* Get pipeline state. */
switch (pipeline) {