wined3d: Move the material to wined3d_state.