mesa: fix/add error check in _mesa_ColorMaterial()
authorBrian Paul <brianp@vmware.com>
Tue, 8 May 2012 16:22:20 +0000 (10:22 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 11 May 2012 22:13:14 +0000 (16:13 -0600)
commitf2724905469bbcde820b9ece2e4f44a610a75a65
tree91fd76fc7b4df97dfc5b03355e451f7163bca9e9
parentbcfc97dbf40c256ed59c2424e0c55b845f0f2569
mesa: fix/add error check in _mesa_ColorMaterial()

_mesa_material_bitmask() will record a GL error and return 0 if
face or mode are illegal.  Return early in that case.

NOTE: This is a candidate for the 8.0 branch.
src/mesa/main/light.c