mesa: querying GL_TEXTURE_COMPRESSED_IMAGE_SIZE for a buffer obj is illegal
authorBrian Paul <brianp@vmware.com>
Fri, 17 Aug 2012 16:50:39 +0000 (10:50 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 18 Aug 2012 13:39:51 +0000 (07:39 -0600)
commita6af24ee14a3e3cef99e96db539aa2abc911e6e0
tree54b3d7457770825fcf147d9188da4237b6b3577e
parent34472a0d8713c4eb300c9d1de0844c8b78bcf1ab
mesa: querying GL_TEXTURE_COMPRESSED_IMAGE_SIZE for a buffer obj is illegal

GL_INVALID_OPERATION is to be raised when querying a non-compressed
image/buffer.  Since a buffer object can't have a compressed format this
query always generates an error.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/texparam.c