Henri Verbeet : wined3d: Get resource info from the texture in wined3d_surface_cleanup().