Commit 3f2fa96b authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Set slice pitch in wined3d_map_desc to surface size.

This behavior mimics D3D11 runtime. Signed-off-by: 's avatarJózef Kucia <jkucia@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 7b9d06b4
......@@ -2597,7 +2597,7 @@ HRESULT CDECL wined3d_surface_map(struct wined3d_surface *surface,
map_desc->row_pitch = surface->resource.width * format->byte_count;
else
map_desc->row_pitch = wined3d_surface_get_pitch(surface);
map_desc->slice_pitch = 0;
map_desc->slice_pitch = surface->resource.height * map_desc->row_pitch;
if (!box)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment