mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
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>
This commit is contained in:
parent
50bd2db618
commit
25c11733ed
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user