From f75b09fd59f1f8f28df9b615ab7a70a1da0b27e7 Mon Sep 17 00:00:00 2001 From: Vadim Girlin Date: Fri, 21 Sep 2012 13:47:16 +0400 Subject: [PATCH] st/mesa: don't use decompress_with_blit for cube maps decompress_with_blit currently doesn't support cube maps. Signed-off-by: Vadim Girlin --- src/mesa/state_tracker/st_cb_texture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 4f4fe77..2a99965 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -709,7 +709,8 @@ st_GetTexImage(struct gl_context * ctx, { struct st_texture_image *stImage = st_texture_image(texImage); - if (stImage->pt && util_format_is_s3tc(stImage->pt->format)) { + if (stImage->pt && util_format_is_s3tc(stImage->pt->format) && + stImage->pt->target != PIPE_TEXTURE_CUBE) { /* Need to decompress the texture. * We'll do this by rendering a textured quad (which is hopefully * faster than using the fallback code in texcompress.c). -- 1.7.11.4