Matteo Bruni : wined3d: Clear dirty flags after calling all the state handlers in context_apply_draw_state().