nv04: small fix again

This commit is contained in:
Stephane Marchesin 2009-05-05 12:03:38 +02:00
parent 39ebeead56
commit 8edb50ff1e

View 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];
}