[PATCH vkd3d 6/7] vkd3d: Fix copying from texture to buffer with NULL src_box.
Józef Kucia
joseph.kucia at gmail.com
Fri Mar 15 09:32:56 CDT 2019
From: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
libs/vkd3d/command.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index c57645f4d89d..3cbf343a8d55 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -2551,9 +2551,8 @@ static void vk_image_buffer_copy_from_d3d12(VkBufferImageCopy *copy,
}
else
{
- copy->imageExtent.width = footprint->Footprint.Width;
- copy->imageExtent.height = footprint->Footprint.Height;
- copy->imageExtent.depth = footprint->Footprint.Depth;
+ unsigned int miplevel = copy->imageSubresource.mipLevel;
+ vk_extent_3d_from_d3d12_miplevel(©->imageExtent, image_desc, miplevel);
}
}
--
2.19.2
More information about the wine-devel
mailing list