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 4da833c..93f752f 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];
        }