Mesa (master): st/vega: Destroy the pipe context with vg_context.

Chia-I Wu olv at kemper.freedesktop.org
Thu Dec 2 09:58:05 UTC 2010


Module: Mesa
Branch: master
Commit: b950d6fa5d1a62ae81b83e20e07f373d8c777ac0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b950d6fa5d1a62ae81b83e20e07f373d8c777ac0

Author: Chia-I Wu <olv at lunarg.com>
Date:   Thu Dec  2 17:26:55 2010 +0800

st/vega: Destroy the pipe context with vg_context.

---

 src/gallium/state_trackers/vega/vg_manager.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/gallium/state_trackers/vega/vg_manager.c b/src/gallium/state_trackers/vega/vg_manager.c
index d538e66..de93576 100644
--- a/src/gallium/state_trackers/vega/vg_manager.c
+++ b/src/gallium/state_trackers/vega/vg_manager.c
@@ -152,7 +152,10 @@ static void
 vg_context_destroy(struct st_context_iface *stctxi)
 {
    struct vg_context *ctx = (struct vg_context *) stctxi;
+   struct pipe_context *pipe = ctx->pipe;
+
    vg_destroy_context(ctx);
+   pipe->destroy(pipe);
 }
 
 static struct st_context_iface *




More information about the mesa-commit mailing list