diff options
author | Eric Anholt <eric@anholt.net> | 2010-03-17 10:10:37 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-03-25 17:30:37 -0700 |
commit | 4980891252f35a2c87ef302b40d7536327a9babd (patch) | |
tree | 919a0f0bc08c0092c788d7e9bb289406ee24f21d /src/mesa | |
parent | 38cb44516e9c1e9154fa8297ea53efc803378c12 (diff) |
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 e1e48ea15c1fe448f0b69e086b66c1123dc98bb7)
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_regions.c | 2 |
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 f042bcbc28..563baa36c4 100644 --- a/src/mesa/drivers/dri/intel/intel_regions.c +++ b/src/mesa/drivers/dri/intel/intel_regions.c @@ -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) |