summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Vetter <[email protected]>2011-07-13 00:09:36 +0200
committerDaniel Vetter <[email protected]>2011-07-13 00:09:36 +0200
commited570cb5e52021cfeb36266189367c85befcc761 (patch)
treeb7be4cced7109f4b7bb2bcc5e880d11c7081ba6b
parentf2fd0d63046c41559c5dfca9ebdc5d33c0ae4177 (diff)
i915g: fixup context desdruction
Reported-by: Christopher Egert <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
-rw-r--r--src/gallium/drivers/i915/i915_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/i915/i915_context.c b/src/gallium/drivers/i915/i915_context.c
index 28ff40a2328..1b30309bb58 100644
--- a/src/gallium/drivers/i915/i915_context.c
+++ b/src/gallium/drivers/i915/i915_context.c
@@ -99,11 +99,11 @@ static void i915_destroy(struct pipe_context *pipe)
struct i915_context *i915 = i915_context(pipe);
int i;
- draw_destroy(i915->draw);
-
if (i915->blitter)
util_blitter_destroy(i915->blitter);
+ draw_destroy(i915->draw);
+
if(i915->batch)
i915->iws->batchbuffer_destroy(i915->batch);