wined3d: Get resource info from the texture in surface_upload_from_surface().