From: Roland Scheidegger Date: Tue, 4 Aug 2009 23:12:16 +0000 (+0200) Subject: radeon: fix miptree comparison breakage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15f5f839b1a52a49bb60e73625b8c6b2f73a75e8;p=mesa.git radeon: fix miptree comparison breakage another case of image never matching miptree in case of compressed textures --- diff --git a/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c b/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c index 02e0dc7774a..d4082bf68f4 100644 --- a/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c +++ b/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c @@ -326,7 +326,8 @@ GLboolean radeon_miptree_matches_image(radeon_mipmap_tree *mt, if (face >= mt->faces || level < mt->firstLevel || level > mt->lastLevel) return GL_FALSE; - if (texImage->IsCompressed != mt->compressed) + if ((!texImage->IsCompressed && mt->compressed) || + (texImage->IsCompressed && !mt->compressed)) return GL_FALSE; if (!texImage->IsCompressed &&