nv04: small fix again
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>
Tue, 5 May 2009 10:03:38 +0000 (12:03 +0200)
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>
Tue, 5 May 2009 10:03:38 +0000 (12:03 +0200)
src/gallium/drivers/nv04/nv04_miptree.c

index 4da833c25e82335da2ef3ec7eebbe50f2fc159e4..93f752faec90c135e7b4e38f313b9a2bee4b3197 100644 (file)
@@ -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];
        }