r600g: Delete custom_dsa_flush on shutdown.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 31 Oct 2010 11:16:03 +0000 (12:16 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Tue, 2 Nov 2010 20:52:39 +0000 (21:52 +0100)
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
src/gallium/drivers/r600/r600_pipe.c

index d25de5566440bb9e0e8616bda21caebd3621961e..952c7f6b87f4d58f32304141f7f62b71e3efc4ef 100644 (file)
@@ -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]);