comments
authorBrian <brian.paul@tungstengraphics.com>
Thu, 27 Sep 2007 22:31:13 +0000 (16:31 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 27 Sep 2007 22:31:13 +0000 (16:31 -0600)
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_mipmap_tree.c

index e7be3df72295594b60e444b7d3973b8ce3c458c0..eea47b9b41ae27b4ec21869393e56135c852c95b 100644 (file)
@@ -1414,9 +1414,10 @@ copy_image_data_to_tree(struct pipe_context *pipe,
       /* Copy potentially with the blitter:
        */
       st_miptree_image_copy(pipe,
-                               stObj->mt,
-                               stImage->face,
-                               stImage->level, stImage->mt);
+                            stObj->mt,  /* dest miptree */
+                            stImage->face, stImage->level,
+                            stImage->mt /* src miptree */
+                            );
 
       st_miptree_release(pipe, &stImage->mt);
    }
index 1764bc61f3f5443596d58e5d20b8dc0668326d84..27bbf176087b07a1b1f55ee08d04a98b73d02462 100644 (file)
@@ -309,10 +309,10 @@ st_miptree_image_copy(struct pipe_context *pipe,
    for (i = 0; i < depth; i++) {
       pipe->region_copy(pipe,
                         dst->region, dst_offset + dst_depth_offset[i],
-                        0,
-                        0,
+                        0, 0, /* destX, Y */
                         src->region, src_offset + src_depth_offset[i],
-                        0, 0, width, height);
+                        0, 0, /* srcX, Y */
+                        width, height);
    }
 
 }