Module: Mesa
Branch: master
Commit: 8edb50ff1e87f9bb00ceeaa2fe13df212a91eb11
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8edb50ff1e87f9bb00ceeaa2fe13df212a91eb11

Author: Stephane Marchesin <[email protected]>
Date:   Tue May  5 12:03:38 2009 +0200

nv04: small fix again

---

 src/gallium/drivers/nv04/nv04_miptree.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/nv04/nv04_miptree.c 
b/src/gallium/drivers/nv04/nv04_miptree.c
index 4da833c..93f752f 100644
--- a/src/gallium/drivers/nv04/nv04_miptree.c
+++ b/src/gallium/drivers/nv04/nv04_miptree.c
@@ -31,7 +31,8 @@ nv04_miptree_layout(struct nv04_miptree *nv04mt)
 
        for (l = 0; l <= pt->last_level; l++) {
 
-               nv04mt->level[l].image_offset = offset;
+               nv04mt->level[l].image_offset = 
+                       CALLOC(nr_faces, sizeof(unsigned));
                offset += nv04mt->level[l].pitch * pt->height[l];
        }
 

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

Reply via email to