From: Marek Olšák Date: Thu, 20 Dec 2012 00:41:57 +0000 (+0100) Subject: st/mesa: fix GetTexImage for compressed cubemaps X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0aecb174ce5d2d5c25e1076e8d0cdcb68e9a3b5c;p=mesa.git st/mesa: fix GetTexImage for compressed cubemaps I'll deal with 2D arrays later. NOTE: This is a candidate for the stable branches. --- diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index bf13526d2ff..77d06503d65 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -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;