wined3d: Move binding the texture and dirtifying the sampler to its own function...