mesa: fix error handling for glIsEnabled
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 19 Sep 2011 07:03:01 +0000 (15:03 +0800)
committerBrian Paul <brianp@vmware.com>
Mon, 19 Sep 2011 14:11:52 +0000 (08:11 -0600)
commit6a9880224368a016dfb1a9f5b5dfa9284a7dc6cf
treed79109e037f6159c8ac59d98f6a2a242ef344c3e
parentb020b111a82266743d2cc501195defe687657e96
mesa: fix error handling for glIsEnabled

According the man page, GL_INVALID_OPERATION should be generated if
glIsEnabled is executed betwwen the execution of glBegin and the
correspoding execution of glEnd.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/main/enable.c