wined3d: Move material application to the vertex pipeline.