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:
parent
7b9d06b494
commit
3f2fa96b98
|
@ -2597,7 +2597,7 @@ HRESULT CDECL wined3d_surface_map(struct wined3d_surface *surface,
|
||||||
map_desc->row_pitch = surface->resource.width * format->byte_count;
|
map_desc->row_pitch = surface->resource.width * format->byte_count;
|
||||||
else
|
else
|
||||||
map_desc->row_pitch = wined3d_surface_get_pitch(surface);
|
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)
|
if (!box)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue