Module: Mesa
Branch: gallium-resources
Commit: c1d4774187189f4af8ff421b210824f3d53ceefb
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c1d4774187189f4af8ff421b210824f3d53ceefb

Author: Keith Whitwell <[email protected]>
Date:   Sun Mar 14 23:05:45 2010 +0000

llvmpipe: don't FREE userbuffer data

---

 src/gallium/drivers/llvmpipe/lp_texture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c 
b/src/gallium/drivers/llvmpipe/lp_texture.c
index 8cb9385..9c1651d 100644
--- a/src/gallium/drivers/llvmpipe/lp_texture.c
+++ b/src/gallium/drivers/llvmpipe/lp_texture.c
@@ -158,7 +158,7 @@ llvmpipe_resource_destroy(struct pipe_screen *pscreen,
       struct sw_winsys *winsys = screen->winsys;
       winsys->displaytarget_destroy(winsys, lpt->dt);
    }
-   else {
+   else if (!lpt->userBuffer) {
       /* regular texture */
       align_free(lpt->data);
    }

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to