wined3d: Fix NP2 surface repacking in surface_download_data.

This commit is contained in:
Matteo Bruni 2013-06-19 21:59:24 +02:00 committed by Alexandre Julliard
parent 410b728c7b
commit 5649746b60
1 changed files with 2 additions and 3 deletions

View File

@ -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);