mesa: check bits per channel for GL_RGBA_SIGNED_COMPONENTS_EXT query
authorBrian Paul <brianp@vmware.com>
Tue, 7 Jan 2014 16:05:27 +0000 (09:05 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 9 Jan 2014 18:35:50 +0000 (11:35 -0700)
commitd046fd731ab192dceee0916323dd718b78df5976
tree01c0c328f46f0d0e6770b5351fbba7194fc52be5
parent0fc8d7c66e08c295b701586afdc1f6d86eb8a514
mesa: check bits per channel for GL_RGBA_SIGNED_COMPONENTS_EXT query

If a channel has zero bits it's not signed.

v2: also check for luminance and intensity format bits.  Bruce
Merry's proposed piglit test hits the luminance case.

Bugzilla: http://bugs.freedesktop.org/show_bug.cgi?id=73096
Cc: 10.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/get.c