summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenri Verbeet <hverbeet@gmail.com>2011-04-07 22:21:20 +0200
committerHenri Verbeet <hverbeet@gmail.com>2011-04-07 22:29:56 +0200
commit09eff39a58885bb3b8507d02920b53b4e81a66ea (patch)
treeb029989209f6c22df32999e3a9a93b9fa6f15a9d
parent3e15fa86d7bb50ae1b97f8962d2f17bfe72d5263 (diff)
r600g: Unreference framebuffer state on context destruction.
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
-rw-r--r--src/gallium/drivers/r600/r600_pipe.c1
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 3e24bfafe4a..2c2245b67a8 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);