wined3d: Use wined3d_texture_get_level_box() in wined3d_device_copy_resource().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2019-06-04 15:31:54 +04:30 committed by Alexandre Julliard
parent 74ebaacb1a
commit 398b1391ba
1 changed files with 1 additions and 4 deletions

View File

@ -4646,10 +4646,7 @@ void CDECL wined3d_device_copy_resource(struct wined3d_device *device,
for (i = 0; i < dst_texture->level_count; ++i) for (i = 0; i < dst_texture->level_count; ++i)
{ {
wined3d_box_set(&box, 0, 0, wined3d_texture_get_level_box(dst_texture, i, &box);
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));
for (j = 0; j < dst_texture->layer_count; ++j) for (j = 0; j < dst_texture->layer_count; ++j)
{ {
unsigned int idx = j * dst_texture->level_count + i; unsigned int idx = j * dst_texture->level_count + i;