diff options
author | Eric Anholt <[email protected]> | 2008-12-17 21:18:00 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2008-12-19 13:04:23 -0800 |
commit | d091ebd4e41c88fe53db9d52842aaa20d23b995d (patch) | |
tree | b4606e59f7a1ef8899b4a9f2947b50296fc0aad7 /src/mesa | |
parent | 1e7785fe0721f66ca9523da0dc338d26256736bb (diff) |
intel: don't clip to scissor-clipped read framebuffer bounds in copypixels.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_pixel_copy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_pixel_copy.c b/src/mesa/drivers/dri/intel/intel_pixel_copy.c index 61d1296c26c..1505af22864 100644 --- a/src/mesa/drivers/dri/intel/intel_pixel_copy.c +++ b/src/mesa/drivers/dri/intel/intel_pixel_copy.c @@ -308,8 +308,8 @@ do_blit_copypixels(GLcontext * ctx, /* Clip to source buffer. */ orig_srcx = srcx; orig_srcy = srcy; - if (!_mesa_clip_to_region(read_fb->_Xmin, read_fb->_Ymin, - read_fb->_Xmax, read_fb->_Ymax, + if (!_mesa_clip_to_region(0, 0, + read_fb->Width, read_fb->Height, &srcx, &srcy, &width, &height)) goto out; /* Adjust dst coords for our post-clipped source origin */ |