radeon: fix miptree comparison breakage

another case of image never matching miptree in case of compressed textures
This commit is contained in:
Roland Scheidegger
2009-08-05 01:12:16 +02:00
parent 80cab49481
commit 15f5f839b1
@@ -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 &&