summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2010-10-31 12:16:03 +0100
committerTilman Sauerbeck <tilman@code-monkey.de>2010-11-02 21:52:39 +0100
commitecb1b8b98f7b2464e29e56a1f1bf87f74129ac08 (patch)
treee8822f52692684ccd92486892a8310499acc617c
parentc49dcaef65296dd51d374d3f903734c46b601b2d (diff)
r600g: Delete custom_dsa_flush on shutdown.
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
-rw-r--r--src/gallium/drivers/r600/r600_pipe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index d25de55664..952c7f6b87 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]);