Henri Verbeet : wined3d: Use wined3d_texture_get_level_box() in wined3d_device_copy_resource().

Alexandre Julliard julliard at winehq.org
Tue Jun 4 16:28:13 CDT 2019


Module: wine
Branch: master
Commit: 398b1391bac98fe175894aaf62e9bef61c8afe63
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=398b1391bac98fe175894aaf62e9bef61c8afe63

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Jun  4 15:49:54 2019 +0430

wined3d: Use wined3d_texture_get_level_box() in wined3d_device_copy_resource().

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

---

 dlls/wined3d/device.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index fe7d0e9..702fda2 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4646,10 +4646,7 @@ void CDECL wined3d_device_copy_resource(struct wined3d_device *device,
 
     for (i = 0; i < dst_texture->level_count; ++i)
     {
-        wined3d_box_set(&box, 0, 0,
-                wined3d_texture_get_level_width(dst_texture, i),
-                wined3d_texture_get_level_height(dst_texture, i),
-                0, wined3d_texture_get_level_depth(dst_texture, i));
+        wined3d_texture_get_level_box(dst_texture, i, &box);
         for (j = 0; j < dst_texture->layer_count; ++j)
         {
             unsigned int idx = j * dst_texture->level_count + i;




More information about the wine-cvs mailing list