st/mesa: fix GetTexImage for compressed cubemaps
authorMarek Olšák <maraeo@gmail.com>
Thu, 20 Dec 2012 00:41:57 +0000 (01:41 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 4 Jan 2013 13:05:52 +0000 (14:05 +0100)
I'll deal with 2D arrays later.

NOTE: This is a candidate for the stable branches.

src/mesa/state_tracker/st_cb_texture.c

index bf13526..77d0650 100644 (file)
@@ -598,7 +598,7 @@ decompress_with_blit(struct gl_context * ctx,
    blit.dst.format = dst_texture->format;
    blit.src.box.x = blit.dst.box.x = 0;
    blit.src.box.y = blit.dst.box.y = 0;
-   blit.src.box.z = 0; /* XXX compressed array textures? */
+   blit.src.box.z = texImage->Face;
    blit.dst.box.z = 0;
    blit.src.box.width = blit.dst.box.width = width;
    blit.src.box.height = blit.dst.box.height = height;