st/mesa: fix GetTexImage for compressed cubemaps

I'll deal with 2D arrays later.

NOTE: This is a candidate for the stable branches.
This commit is contained in:
Marek Olšák
2012-12-20 01:41:57 +01:00
parent afec42a648
commit 0aecb174ce
+1 -1
View 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;