wined3d: Set slice pitch in wined3d_map_desc to surface size.

This behavior mimics D3D11 runtime.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2015-11-02 17:12:27 +01:00 committed by Alexandre Julliard
parent 7b9d06b494
commit 3f2fa96b98

View file

@ -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)
{