Henri Verbeet : wined3d: Avoid surface_from_resource() in texture2d_prepare_texture().