Stefan Dösinger : wined3d: Move material applying to the state table.