summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-04-01 00:57:57 +0000
committerEric Anholt <anholt@FreeBSD.org>2006-04-01 00:57:57 +0000
commit482d9dd21ddb7293a430ee1b34b6087391b064e1 (patch)
tree63e84e8676611bb0cce1e30b03e160c419acf892
parent9e8659f346d432b6e51a47e749995bb93ec40a1c (diff)
Don't index box by the box's index within numClipRects; just dereference it.mesa_6_5
Fixes drawing with more than one cliprect. (Keith Packard)
-rw-r--r--src/mesa/drivers/dri/i915/intel_batchbuffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_batchbuffer.c b/src/mesa/drivers/dri/i915/intel_batchbuffer.c
index 974a2497e1d..5979e236bcd 100644
--- a/src/mesa/drivers/dri/i915/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i915/intel_batchbuffer.c
@@ -655,10 +655,10 @@ void intelClearWithBlit(GLcontext *ctx, GLbitfield flags, GLboolean all,
drm_clip_rect_t b;
if (!all) {
- GLint x = box[i].x1;
- GLint y = box[i].y1;
- GLint w = box[i].x2 - x;
- GLint h = box[i].y2 - y;
+ GLint x = box->x1;
+ GLint y = box->y1;
+ GLint w = box->x2 - x;
+ GLint h = box->y2 - y;
if (x < cx) w -= cx - x, x = cx;
if (y < cy) h -= cy - y, y = cy;