mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 18:10:36 +02:00
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:
parent
38cb44516e
commit
4980891252
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue