Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ValveSoftware/vkd3d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2019-10-01 13:33:46 +0300
committerAlexandre Julliard <julliard@winehq.org>2019-10-01 20:15:53 +0300
commit25c11733edf76f4933fb9c389e1ccafd187724c1 (patch)
treece750e4c6ccfa25109b8a85dc3a984bd1af3b68d
parent50bd2db618cdc3de79e3e5fa3fd686441514108d (diff)
vkd3d: Fix non-standard pointer arithmetic on void-pointer.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
-rw-r--r--libs/vkd3d/resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/vkd3d/resource.c b/libs/vkd3d/resource.c
index aebe1fac..88f184dc 100644
--- a/libs/vkd3d/resource.c
+++ b/libs/vkd3d/resource.c
@@ -1388,7 +1388,7 @@ static HRESULT STDMETHODCALLTYPE d3d12_resource_ReadFromSubresource(ID3D12Resour
size = (box.right - box.left) / format->block_width * format->byte_count * format->block_byte_count;
for (z = box.front; z < box.back; ++z)
{
- dst = dst_data + (z - box.front) * dst_slice_pitch;
+ dst = (uint8_t *)dst_data + (z - box.front) * dst_slice_pitch;
src = src_data + z * vk_layout.depthPitch + box.top / format->block_height * vk_layout.rowPitch;
for (y = box.top; y < box.bottom; y += format->block_height)
{