i915g: fixup context desdruction
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 12 Jul 2011 22:09:36 +0000 (00:09 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 12 Jul 2011 22:09:36 +0000 (00:09 +0200)
Reported-by: Christopher Egert <cme3000@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
src/gallium/drivers/i915/i915_context.c

index 28ff40a..1b30309 100644 (file)
@@ -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);