unbreak 3d textures (typo when setting tex layout)
authorRoland Scheidegger <sroland@tungstengraphics.com>
Mon, 21 May 2007 09:38:25 +0000 (11:38 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 22 May 2007 01:32:24 +0000 (03:32 +0200)
src/mesa/drivers/dri/i915tex/i915_tex_layout.c

index 9f40706c36a8ddbecdc3d76b5e1cd407c76e4f7d..7b761a7b2214637721d23b7d36d078b32e6ff0fd 100644 (file)
@@ -113,7 +113,7 @@ i915_miptree_layout(struct intel_mipmap_tree * mt)
           */
          for (level = mt->first_level; level <= MAX2(8, mt->last_level);
               level++) {
-            intel_miptree_set_level_info(mt, level, 1, 0, mt->total_height,
+            intel_miptree_set_level_info(mt, level, depth, 0, mt->total_height,
                                          width, height, depth);