Commit c87d5352 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Full surface DXTn copy.

Height * Pitch is not a valid way to calculate the surface size for DXTn surfaces. Instead of messing with format specific formulas just use the size stored in the destination surface.
parent 2ecacc61
......@@ -555,8 +555,7 @@ IWineGDISurfaceImpl_Blt(IWineD3DSurface *iface,
ret = WINED3DERR_WRONGTEXTUREFORMAT;
goto release;
}
TRACE("Fourcc->Fourcc copy)\n");
memcpy(dlock.pBits, slock.pBits, This->currentDesc.Height * dlock.Pitch);
memcpy(dlock.pBits, slock.pBits, This->resource.size);
goto release;
}
......
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