Add array texture targets to list that can use compressed formats.

This commit is contained in:
Ian Romanick
2007-05-17 11:16:19 -07:00
parent 064cd7c78c
commit 817181ea50
+4 -1
View File
@@ -1396,7 +1396,10 @@ target_can_be_compressed(GLcontext *ctx, GLenum target)
|| ((ctx->Extensions.ARB_texture_cube_map &&
(target == GL_PROXY_TEXTURE_CUBE_MAP ||
(target >= GL_TEXTURE_CUBE_MAP_POSITIVE_X &&
target <= GL_TEXTURE_CUBE_MAP_NEGATIVE_Z)))));
target <= GL_TEXTURE_CUBE_MAP_NEGATIVE_Z))))
|| ((ctx->Extensions.MESA_texture_array &&
((target == GL_PROXY_TEXTURE_2D_ARRAY) ||
(target == GL_TEXTURE_2D_ARRAY)))));
}