intel: Fix glBitmap clipping for DRI1.
authorEric Anholt <eric@anholt.net>
Tue, 23 Dec 2008 22:45:37 +0000 (14:45 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 23 Dec 2008 23:01:53 +0000 (15:01 -0800)
src/mesa/drivers/dri/intel/intel_pixel_bitmap.c

index fb1a051cdc8ef315f83989a17c796ec7c0c413be..5e0e0d29ca55c329635a64d6107161e39bfbcb7d 100644 (file)
@@ -244,8 +244,8 @@ do_blit_bitmap( GLcontext *ctx,
         /* Clip to drawable cliprect */
          if (!_mesa_clip_to_region(cliprects[i].x1,
                                   cliprects[i].y1,
-                                  cliprects[i].x2 - cliprects[i].x1,
-                                  cliprects[i].y2 - cliprects[i].y1,
+                                  cliprects[i].x2,
+                                  cliprects[i].y2,
                                   &box_x, &box_y, &box_w, &box_h))
            continue;