summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-04-28 15:14:58 -0600
committerBrian Paul <[email protected]>2010-04-28 15:25:50 -0600
commit5f53ecb97f23503324d62abdd21bda8ee80b0ab9 (patch)
treef04cbea100416c283b4252b7a94f8195ed090219 /src/gallium/drivers
parent1550de98e62a179301e96b04a6fa75b6b1ba5b19 (diff)
llvmpipe: fix surface memory leak during tear-down
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c
index 611ec8c0190..6f162482f46 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup.c
@@ -762,6 +762,8 @@ lp_setup_destroy( struct lp_setup_context *setup )
reset_context( setup );
+ util_unreference_framebuffer_state(&setup->fb);
+
for (i = 0; i < Elements(setup->fs.current_tex); i++) {
pipe_resource_reference(&setup->fs.current_tex[i], NULL);
}