projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
064cd7c
)
Add array texture targets to list that can use compressed formats.
author
Ian Romanick
<idr@us.ibm.com>
Thu, 17 May 2007 18:16:19 +0000
(11:16 -0700)
committer
Ian Romanick
<idr@us.ibm.com>
Thu, 17 May 2007 18:16:19 +0000
(11:16 -0700)
src/mesa/main/teximage.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/teximage.c
b/src/mesa/main/teximage.c
index 1bcb9e851d44a19bb5170ddc15fffb12a1a98cfd..766dad4d5f7c6e61d69699b966291ee824222e38 100644
(file)
--- 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)))));
}