From: Henri Verbeet Date: Thu, 7 Apr 2011 20:21:20 +0000 (+0200) Subject: r600g: Unreference framebuffer state on context destruction. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09eff39a58885bb3b8507d02920b53b4e81a66ea;p=mesa.git r600g: Unreference framebuffer state on context destruction. Signed-off-by: Henri Verbeet --- 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);