Matteo Bruni : wined3d: Add some state table consistency checking to context_invalidate_state().