diff options
author | Brian Paul <[email protected]> | 2010-04-28 15:14:58 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-04-28 15:25:50 -0600 |
commit | 5f53ecb97f23503324d62abdd21bda8ee80b0ab9 (patch) | |
tree | f04cbea100416c283b4252b7a94f8195ed090219 /src/gallium/drivers/llvmpipe/lp_setup.c | |
parent | 1550de98e62a179301e96b04a6fa75b6b1ba5b19 (diff) |
llvmpipe: fix surface memory leak during tear-down
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup.c | 2 |
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); } |