Henri Verbeet : wined3d: Introduce a separate function for cleaning up a wined3d_state structure.