mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue