mesa: get_texbuffer_format(): differentiate between core and compat context
authorPi Tabred <servuswiegehtz@yahoo.de>
Sat, 14 Dec 2013 17:32:00 +0000 (10:32 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 18 Dec 2013 16:06:51 +0000 (09:06 -0700)
commit72d872ad824110402a4455cb2b3aadb5c5160f89
treeee3ffd008bcf8270d3dffa966cf83b7e9d347abc
parent1ec2d0a9a88214dd49ef6b864ec6e37f55c74535
mesa: get_texbuffer_format(): differentiate between core and compat context

alpha, lumincance and intensity formats are illegal in a core context.
Add a check to return MESA_FORMAT_NONE if one of those is requested within
a core context.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/teximage.c