From a945266d259c0e57e181a6b8ff7ccb04452fc429 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 9 Feb 2016 21:29:59 +0100 Subject: [PATCH] wined3d: Use wined3d_texture_get_pitch() in texture3d_sub_resource_upload_data(). Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c index 06abb38f4d6..8b414a6e727 100644 --- a/dlls/wined3d/texture.c +++ b/dlls/wined3d/texture.c @@ -1167,7 +1167,7 @@ static void texture3d_sub_resource_upload_data(struct wined3d_resource *sub_reso struct wined3d_const_bo_address addr; unsigned int row_pitch, slice_pitch; - wined3d_volume_get_pitch(volume, &row_pitch, &slice_pitch); + wined3d_texture_get_pitch(volume->container, volume->texture_level, &row_pitch, &slice_pitch); if (row_pitch != data->row_pitch || slice_pitch != data->slice_pitch) FIXME("Ignoring row/slice pitch (%u/%u).\n", data->row_pitch, data->slice_pitch);