Mesa (master): intel: don' t clip to scissor-clipped read framebuffer bounds in copypixels.

Eric Anholt anholt at kemper.freedesktop.org
Fri Dec 19 13:06:09 PST 2008


Module: Mesa
Branch: master
Commit: d091ebd4e41c88fe53db9d52842aaa20d23b995d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d091ebd4e41c88fe53db9d52842aaa20d23b995d

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Dec 17 21:18:00 2008 -0800

intel: don't clip to scissor-clipped read framebuffer bounds in copypixels.

---

 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 61d1296..1505af2 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 */



More information about the mesa-commit mailing list