mesa: combine GL_TEXTURE_INTENSITY/LUMINANCE_SIZE queries
authorBrian Paul <brianp@vmware.com>
Wed, 23 Nov 2011 22:33:46 +0000 (15:33 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 28 Nov 2011 15:07:26 +0000 (08:07 -0700)
commitd45c9b239fdc2a2e06e14fc94c118f27d4011024
treeb870c65edb91598e66dcca03b57c8af8cf0a0398
parentf0b6e9a729d14740fc607c1148032d688f3c5c2c
mesa: combine GL_TEXTURE_INTENSITY/LUMINANCE_SIZE queries

Use the _mesa_base_format_has_channel() helper as we do for the
other texture format component queries.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/texparam.c