[Mesa-dev] [PATCH 09/14] st/mesa: fix GetTexImage for compressed cubemaps

Marek Olšák maraeo at gmail.com
Thu Dec 20 09:56:47 PST 2012


I'll deal with 2D arrays later.
---
 src/mesa/state_tracker/st_cb_texture.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index bf13526..77d0650 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;
-- 
1.7.10.4



More information about the mesa-dev mailing list