st/mesa: do not clear NewDriverState for inactive states
[mesa.git] / src / mesa / state_tracker / st_atom.c
index 11b0ce6ec55519b425ad6bc33abdcd2229cd28ef..181134a2207f9b5bec274431c64ee662b72f036d 100644 (file)
@@ -181,7 +181,7 @@ void st_validate_state( struct st_context *st, enum st_pipeline pipeline )
     * 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) {