Commit 5649746b authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Fix NP2 surface repacking in surface_download_data.

parent 410b728c
......@@ -2246,12 +2246,11 @@ static void surface_download_data(struct wined3d_surface *surface, const struct
src_data = mem;
dst_data = surface->resource.allocatedMemory;
TRACE("(%p) : Repacking the surface data from pitch %d to pitch %d\n", surface, src_pitch, dst_pitch);
for (y = 1; y < surface->resource.height; ++y)
for (y = 0; y < surface->resource.height; ++y)
{
/* skip the first row */
memcpy(dst_data, src_data, dst_pitch);
src_data += src_pitch;
dst_data += dst_pitch;
memcpy(dst_data, src_data, dst_pitch);
}
HeapFree(GetProcessHeap(), 0, mem);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment