=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Set slice pitch in wined3d_map_desc to surface size.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Nov 4 09:40:39 CST 2015
Module: wine
Branch: master
Commit: 3f2fa96b982a7c43127602cd5d398901ee4c0217
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3f2fa96b982a7c43127602cd5d398901ee4c0217
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Mon Nov 2 17:12:27 2015 +0100
wined3d: Set slice pitch in wined3d_map_desc to surface size.
This behavior mimics D3D11 runtime.
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index c3ab307..c3ddc84 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -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)
{
More information about the wine-cvs
mailing list