gallium: fix incorrect level param in copy_image_data_to_texture()
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 28 Apr 2008 20:04:19 +0000 (14:04 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 28 Apr 2008 20:04:56 +0000 (14:04 -0600)
This fixes a weird conform test failure that depended on something that
happened several tests earlier.  This took waaaaaay too long to find/fix.

src/mesa/state_tracker/st_cb_texture.c

index 005bb2e54db62c01568ac6580b49a0779bc326df..3454c3e8e801f81715f4ca65105527040cc8784c 100644 (file)
@@ -1381,7 +1381,7 @@ copy_image_data_to_texture(struct st_context *st,
       st_texture_image_data(st->pipe,
                                stObj->pt,
                                stImage->face,
-                               stImage->level,
+                               dstLevel,
                                stImage->base.Data,
                                stImage->base.RowStride,
                                stImage->base.RowStride *