mesa: another target fix in compressed_subtexture_target_check()
authorBrian Paul <brianp@vmware.com>
Wed, 22 Jul 2015 13:42:12 +0000 (07:42 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 24 Jul 2015 02:19:50 +0000 (20:19 -0600)
commit05a44ab32832efe61a252ef4ac2d128c1101c286
treecc159abacb9de1ee3bc582d4b3b3f3869ddee39a
parent81e2c256e921ad4f5c13bb0d95bbe0ad232ec37c
mesa: another target fix in compressed_subtexture_target_check()

The previous fix added GL_TEXTURE_CUBE_MAP_ARRAY but we also need
to support GL_TEXTURE_CUBE_MAP (via DSA).

So in the end, GL_TEXTURE_3D is the only (legal) target for
glCompressedTex*SubImage3D() which needs additional compression
format checking.  GL_TEXTURE_2D_ARRAY, GL_TEXTURE_CUBE_MAP_ARRAY
and GL_TEXTURE_CUBE_MAP are basically 2D images which support all
compressed formats.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/main/teximage.c