summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2007-10-17 18:26:31 +0200
committerMichel Dänzer <[email protected]>2007-10-17 18:37:12 +0200
commitb4531121330fa85a072f129d11e8432b5294c789 (patch)
tree3946c340517aaa7c3f4f3e2476f4a4956dcfdf37 /src
parent87966baa8d15ff58cd63da23627a4285bb7fb7e7 (diff)
i915: Don't emit 'empty' blit rectangles.
The hardware seems to interpret them differently and produce unexpected results...
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i915/intel_blit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_blit.c b/src/mesa/drivers/dri/i915/intel_blit.c
index b00b0d9e1b5..2d4d00edefd 100644
--- a/src/mesa/drivers/dri/i915/intel_blit.c
+++ b/src/mesa/drivers/dri/i915/intel_blit.c
@@ -402,6 +402,9 @@ intelClearWithBlit(GLcontext * ctx, GLbitfield mask)
b = *box;
}
+ if (b.x1 >= b.x2 || b.y1 >= b.y2)
+ continue;
+
if (0)
_mesa_printf("clear %d,%d..%d,%d, mask %x\n",
b.x1, b.y1, b.x2, b.y2, mask);