mesa: better, smaller error handling code for glEnable/Disable/IsEnabled()
authorBrian Paul <brianp@vmware.com>
Tue, 20 Apr 2010 22:13:08 +0000 (16:13 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 20 Apr 2010 22:17:09 +0000 (16:17 -0600)
commitf4dcb5de4e46d7b511b530375ef77e9946b89ff0
treee66e60b92fdc541f37297a6620068073241d7f40
parentf86d7af4a0003997890edc84158e72c21c11037e
mesa: better, smaller error handling code for glEnable/Disable/IsEnabled()

Use a goto instead of replicating the _mesa_error() call many times.
enable.o is about 15% smaller.
src/mesa/main/enable.c