diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-10-17 18:26:31 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-10-17 18:28:46 +0200 |
commit | c09e2143c7e315fc5cbd302237d6a9c35c6f8a77 (patch) | |
tree | 1c0b5612102b3e94ac0d1760120a4439728726bc | |
parent | 74ced1e67f286a5e71e9877bc6844b2af5b9ab8d (diff) |
i915tex: Don't emit 'empty' blit rectangles.
The hardware seems to interpret them differently and produce unexpected
results...
-rw-r--r-- | src/mesa/drivers/dri/i915tex/intel_blit.c | 3 |
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 dbe4ba2ac5..a0601515c1 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); |