[PATCH 3/7] wined3d: Set slice pitch in wined3d_map_desc to surface size.

Józef Kucia jkucia at codeweavers.com
Sun Nov 1 21:17:04 CST 2015


This behavior mimics D3D11 runtime.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 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 021f9e4..73561f5 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2595,7 +2595,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)
     {
-- 
2.4.10




More information about the wine-patches mailing list