summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2008-03-30 21:13:13 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2008-03-30 21:13:13 +0200
commita7c0a7613a64c542c417f65b9a95e4a37c67a1bf (patch)
treecc330c8d089422e2d8018ed58df2427b10910bb2
parent6b78eed962c65ff93b51ee1677ae3f73c7a18589 (diff)
Properly handle non-exec cases.
-rw-r--r--src/mesa/drivers/dri/i915tex/intel_batchbuffer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915tex/intel_batchbuffer.c b/src/mesa/drivers/dri/i915tex/intel_batchbuffer.c
index 757cbf1851..5ede6646ef 100644
--- a/src/mesa/drivers/dri/i915tex/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i915tex/intel_batchbuffer.c
@@ -310,6 +310,10 @@ do_flush_locked(struct intel_batchbuffer *batch,
if (!(intel->numClipRects == 0 && !ignore_cliprects)) {
ret = i915_execbuf(batch, used, ignore_cliprects, boList, &ea);
+ } else {
+ driBOUnrefUserList(batch->list);
+ driPutdrmBOList(batch->list);
+ return NULL;
}
driPutdrmBOList(batch->list);