[PATCH 5/5] wined3d: Add some state table consistency checking to context_invalidate_state().