From: Stephane Marchesin Date: Tue, 5 May 2009 10:03:38 +0000 (+0200) Subject: nv04: small fix again X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8edb50ff1e87f9bb00ceeaa2fe13df212a91eb11;p=mesa.git nv04: small fix again --- diff --git a/src/gallium/drivers/nv04/nv04_miptree.c b/src/gallium/drivers/nv04/nv04_miptree.c index 4da833c25e8..93f752faec9 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]; }