llvmpipe: fix surface memory leak during tear-down
authorBrian Paul <brianp@vmware.com>
Wed, 28 Apr 2010 21:14:58 +0000 (15:14 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 28 Apr 2010 21:25:50 +0000 (15:25 -0600)
src/gallium/drivers/llvmpipe/lp_setup.c

index 611ec8c0190314c1dd940382c85f2d9a4d9c10c1..6f162482f46296938da24477f67453dec89d36f0 100644 (file)
@@ -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);
    }