summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-03-17 10:10:37 -0700
committerEric Anholt <[email protected]>2010-03-17 11:24:01 -0700
commite1e48ea15c1fe448f0b69e086b66c1123dc98bb7 (patch)
treeab77ff524e10a46be1ea8d876f346e738b97f0ff /src
parentda011faf48155a5c02ebc1fe1fa20a4f54b8c657 (diff)
intel: Respect src pitch in _mesa_copy_rect().
If a non-zero src_y was used, this would break piglit depth-level-clamp.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/intel/intel_regions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_regions.c b/src/mesa/drivers/dri/intel/intel_regions.c
index 27e454d2942..1172de90b13 100644
--- a/src/mesa/drivers/dri/intel/intel_regions.c
+++ b/src/mesa/drivers/dri/intel/intel_regions.c
@@ -307,7 +307,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)