wined3d: Only copy the depth buffer if there is one.