From 43ccded1e17147c0b705152add11875b560b1c43 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Mon, 18 Jun 2012 20:37:34 +0200 Subject: llvmpipe: destroy setup variants on context destruction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lp_delete_setup_variants() used to be called in garbage collection, but this no longer exists hence the setup shaders never got freed. Reviewed-by: José Fonseca --- src/gallium/drivers/llvmpipe/lp_context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/llvmpipe/lp_context.c b/src/gallium/drivers/llvmpipe/lp_context.c index 7f92a5fe5a7..9e4c7d6734e 100644 --- a/src/gallium/drivers/llvmpipe/lp_context.c +++ b/src/gallium/drivers/llvmpipe/lp_context.c @@ -126,6 +126,8 @@ static void llvmpipe_destroy( struct pipe_context *pipe ) pipe_resource_reference(&llvmpipe->vertex_buffer[i].buffer, NULL); } + lp_delete_setup_variants(llvmpipe); + gallivm_destroy(llvmpipe->gallivm); align_free( llvmpipe ); -- cgit v1.2.3