Browse Source

nv04: small fix again

tags/mesa_7_6_rc1
Stephane Marchesin 16 years ago
parent
commit
8edb50ff1e
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/gallium/drivers/nv04/nv04_miptree.c

+ 2
- 1
src/gallium/drivers/nv04/nv04_miptree.c 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];
}


Loading…
Cancel
Save