mesa: fix incorrect error for glCompressedSubTexImage
authorBrian Paul <brianp@vmware.com>
Sat, 22 Sep 2012 15:30:23 +0000 (09:30 -0600)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 28 Sep 2012 22:47:57 +0000 (15:47 -0700)
commit5ef472dd83b7b96538432157e2569dedf5625161
treeb7ad61c6b380cb125790179bff62f35805a158e9
parent7c60a95a0e4e4e8b31c9028a5edc22dca791dcb7
mesa: fix incorrect error for glCompressedSubTexImage

If a subtexture region isn't aligned to the compressed block size,
return GL_INVALID_OPERATION, not gl_INVALID_VALUE.

NOTE: This is a candidate for the stable branches.

Reviewed-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 1f586684d62c4f5208d1f3929d067a79ea2140ac)
src/mesa/main/teximage.c