r600g: Unreference framebuffer state on context destruction.
authorHenri Verbeet <hverbeet@gmail.com>
Thu, 7 Apr 2011 20:21:20 +0000 (22:21 +0200)
committerHenri Verbeet <hverbeet@gmail.com>
Thu, 7 Apr 2011 20:29:56 +0000 (22:29 +0200)
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
src/gallium/drivers/r600/r600_pipe.c

index 3e24bfafe4a73240cdf54dacc9f439b9fc3d2eef..2c2245b67a8da907e577de999f8c085ecfb94b55 100644 (file)
@@ -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);