diff options
author | Ian Romanick <idr@us.ibm.com> | 2007-05-17 11:16:19 -0700 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2007-05-17 11:16:19 -0700 |
commit | 817181ea5044b222f7612a425562bbc9313d5c75 (patch) | |
tree | ae77163e8972bfd58249332db5ada4455c6fa45d /src/mesa/main | |
parent | 064cd7c78c3108012f5d15206c70470f7b500259 (diff) |
Add array texture targets to list that can use compressed formats.
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/teximage.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 1bcb9e851d..766dad4d5f 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -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))))); } |