diff options
author | Xiang, Haihao <[email protected]> | 2008-11-11 13:42:13 +0800 |
---|---|---|
committer | Xiang, Haihao <[email protected]> | 2008-11-11 13:58:15 +0800 |
commit | 09623fe551771031ed02ba7542c94bdbdd83ecec (patch) | |
tree | 9ffbeb23d59e9be66e08c86e368fbf444ca5b02d /src/mesa/drivers/dri | |
parent | 8412b06b67d0f9adae18157f550a8cc3da5ae22b (diff) |
intel: reset cliprect_mode to IGNORE_CLIPRECTS.
This ensures all batchbuffers have a same cliprect mode after calling
_intel_batchbuffer_flush even if there aren't invalid commands in the
current batch buffer. (fix bug#18362).
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_batchbuffer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_batchbuffer.c b/src/mesa/drivers/dri/intel/intel_batchbuffer.c index c9b88b0ae1f..9d9937289a8 100644 --- a/src/mesa/drivers/dri/intel/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/intel/intel_batchbuffer.c @@ -197,8 +197,10 @@ _intel_batchbuffer_flush(struct intel_batchbuffer *batch, const char *file, GLuint used = batch->ptr - batch->map; GLboolean was_locked = intel->locked; - if (used == 0) + if (used == 0) { + batch->cliprect_mode = IGNORE_CLIPRECTS; return; + } if (INTEL_DEBUG & DEBUG_BATCH) fprintf(stderr, "%s:%d: Batchbuffer flush with %db used\n", file, line, |