From ecb1b8b98f7b2464e29e56a1f1bf87f74129ac08 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sun, 31 Oct 2010 12:16:03 +0100 Subject: [PATCH] r600g: Delete custom_dsa_flush on shutdown. Signed-off-by: Tilman Sauerbeck --- src/gallium/drivers/r600/r600_pipe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index d25de556644..952c7f6b87f 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -77,6 +77,8 @@ 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); + r600_context_fini(&rctx->ctx); for (int i = 0; i < R600_PIPE_NSTATES; i++) { free(rctx->states[i]); -- 2.30.2