diff options
author | Dave Airlie <[email protected]> | 2008-07-11 07:28:55 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2008-07-11 07:28:55 +1000 |
commit | b52398571b7f5c537c2f5e1c87f1b8bdf3d8ea9b (patch) | |
tree | 702a62d9d6eefe21e73a5b1cd86a9bfca29ce625 /src/mesa/drivers/dri/intel/intel_batchbuffer.h | |
parent | ac05da56ec1dd14876dbf3fde37aa951b9215f5b (diff) |
intel: fix batch flushing problem with cliprects handling.
pointed out and debugged by stringfellow on #dri-devel
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_batchbuffer.h')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_batchbuffer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_batchbuffer.h b/src/mesa/drivers/dri/intel/intel_batchbuffer.h index 2d636df2ce5..0da602010e8 100644 --- a/src/mesa/drivers/dri/intel/intel_batchbuffer.h +++ b/src/mesa/drivers/dri/intel/intel_batchbuffer.h @@ -118,8 +118,10 @@ intel_batchbuffer_require_space(struct intel_batchbuffer *batch, if (batch->cliprect_mode == IGNORE_CLIPRECTS) { batch->cliprect_mode = cliprect_mode; } else { - if (batch->cliprect_mode != cliprect_mode) + if (batch->cliprect_mode != cliprect_mode) { intel_batchbuffer_flush(batch); + batch->cliprect_mode = cliprect_mode; + } } } } |