projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e8659f
)
Don't index box by the box's index within numClipRects; just dereference it.
author
Eric Anholt
<anholt@FreeBSD.org>
Sat, 1 Apr 2006 00:57:57 +0000
(
00:57
+0000)
committer
Eric Anholt
<anholt@FreeBSD.org>
Sat, 1 Apr 2006 00:57:57 +0000
(
00:57
+0000)
Fixes drawing with more than one cliprect. (Keith Packard)
src/mesa/drivers/dri/i915/intel_batchbuffer.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i915/intel_batchbuffer.c
b/src/mesa/drivers/dri/i915/intel_batchbuffer.c
index 974a2497e1d622b38a32223a2f4d36e51b143cb5..5979e236bcd772cb5cd83ac4ce078af073b31501 100644
(file)
--- 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;