diff options
author | Stephane Marchesin <[email protected]> | 2009-05-05 12:03:38 +0200 |
---|---|---|
committer | Stephane Marchesin <[email protected]> | 2009-05-05 12:03:38 +0200 |
commit | 8edb50ff1e87f9bb00ceeaa2fe13df212a91eb11 (patch) | |
tree | 36ac2af8618e97199908543a78848db3611b9533 /src/gallium/drivers | |
parent | 39ebeead56bddfd339b6b6b31dd1b52d96859d65 (diff) |
nv04: small fix again
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | 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 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]; } |