intel: Respect src pitch in _mesa_copy_rect().

If a non-zero src_y was used, this would break piglit
depth-level-clamp.
(cherry picked from commit e1e48ea15c)
This commit is contained in:
Eric Anholt 2010-03-17 10:10:37 -07:00
parent 38cb44516e
commit 4980891252

View file

@ -316,7 +316,7 @@ _mesa_copy_rect(GLubyte * dst,
dst += dst_x * cpp;
src += src_x * cpp;
dst += dst_y * dst_pitch;
src += src_y * dst_pitch;
src += src_y * src_pitch;
width *= cpp;
if (width == dst_pitch && width == src_pitch)