Mesa (master): r600g: Unreference framebuffer state on context destruction.

Henri Verbeet hverbeet at kemper.freedesktop.org
Thu Apr 7 20:30:31 UTC 2011


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

Author: Henri Verbeet <hverbeet at gmail.com>
Date:   Thu Apr  7 22:21:20 2011 +0200

r600g: Unreference framebuffer state on context destruction.

Signed-off-by: Henri Verbeet <hverbeet at gmail.com>

---

 src/gallium/drivers/r600/r600_pipe.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index 3e24bfa..2c2245b 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -168,6 +168,7 @@ static void r600_destroy_context(struct pipe_context *context)
 	struct r600_pipe_context *rctx = (struct r600_pipe_context *)context;
 
 	rctx->context.delete_depth_stencil_alpha_state(&rctx->context, rctx->custom_dsa_flush);
+	util_unreference_framebuffer_state(&rctx->framebuffer);
 
 	r600_context_fini(&rctx->ctx);
 




More information about the mesa-commit mailing list