summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
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:28:46 +0200
commitc09e2143c7e315fc5cbd302237d6a9c35c6f8a77 (patch)
tree1c0b5612102b3e94ac0d1760120a4439728726bc /src/mesa/drivers
parent74ced1e67f286a5e71e9877bc6844b2af5b9ab8d (diff)
i915tex: Don't emit 'empty' blit rectangles.
The hardware seems to interpret them differently and produce unexpected results...
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i915tex/intel_blit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915tex/intel_blit.c b/src/mesa/drivers/dri/i915tex/intel_blit.c
index dbe4ba2ac5e..a0601515c16 100644
--- a/src/mesa/drivers/dri/i915tex/intel_blit.c
+++ b/src/mesa/drivers/dri/i915tex/intel_blit.c
@@ -409,6 +409,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);