From: Paul Gofman Subject: [PATCH 2/3] wined3d: Pass correct map size in wined3d_texture_gl_upload_data(). Message-Id: <20191003203655.25307-2-gofmanp@gmail.com> Date: Thu, 3 Oct 2019 23:36:54 +0300 In-Reply-To: <20191003203655.25307-1-gofmanp@gmail.com> References: <20191003203655.25307-1-gofmanp@gmail.com> Signed-off-by: Paul Gofman --- The wrong size did not seem to introduce any problem in practice as the BO is in system memory here. dlls/wined3d/texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c index dd61ac8ae1..d103581b8d 100644 --- a/dlls/wined3d/texture.c +++ b/dlls/wined3d/texture.c @@ -2077,7 +2077,7 @@ static void wined3d_texture_gl_upload_data(struct wined3d_context *context, } src_mem = wined3d_context_gl_map_bo_address(context_gl, &bo, - src_slice_pitch, GL_PIXEL_UNPACK_BUFFER, WINED3D_MAP_READ); + src_slice_pitch * update_d, GL_PIXEL_UNPACK_BUFFER, WINED3D_MAP_READ); if (decompress) compressed_format->decompress(src_mem, converted_mem, src_row_pitch, src_slice_pitch, dst_row_pitch, dst_slice_pitch, update_w, update_h, update_d); -- 2.21.0