Henri Verbeet : wined3d: Use wined3d_texture_get_pitch() in texture3d_sub_resource_upload_data().

Alexandre Julliard julliard at wine.codeweavers.com
Wed Feb 10 11:11:08 CST 2016


Module: wine
Branch: master
Commit: a945266d259c0e57e181a6b8ff7ccb04452fc429
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a945266d259c0e57e181a6b8ff7ccb04452fc429

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Feb  9 21:29:59 2016 +0100

wined3d: Use wined3d_texture_get_pitch() in texture3d_sub_resource_upload_data().

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 06abb38..8b414a6 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);
 




More information about the wine-cvs mailing list