[PATCH 3/7] wined3d: Set slice pitch in wined3d_map_desc to surface size. (resend)
Józef Kucia
jkucia at codeweavers.com
Mon Nov 2 10:12:27 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 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)
{
--
2.4.10
More information about the wine-patches
mailing list