summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-12-20 01:41:57 +0100
committerMarek Olšák <[email protected]>2013-01-04 14:05:52 +0100
commit0aecb174ce5d2d5c25e1076e8d0cdcb68e9a3b5c (patch)
treea6df4d7742fb796781f6ced5baa4ed558477d7a1 /src/mesa
parentafec42a648b8e22f1a1a818271cf1d5aa818df81 (diff)
st/mesa: fix GetTexImage for compressed cubemaps
I'll deal with 2D arrays later. NOTE: This is a candidate for the stable branches.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_cb_texture.c2
1 files changed, 1 insertions, 1 deletions
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;