mesa: fix incorrect error for glCompressedSubTexImage
authorBrian Paul <brianp@vmware.com>
Sat, 22 Sep 2012 15:30:23 +0000 (09:30 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 26 Sep 2012 13:43:49 +0000 (07:43 -0600)
commit1f586684d62c4f5208d1f3929d067a79ea2140ac
treeb781a654e626e332898acd8961897e63a79772b0
parent421eeff4636ecc819c118b67136b97f0a922e6fd
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>
src/mesa/main/teximage.c