mesa: fix error handling for some glGet* functions
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 19 Sep 2011 07:02:59 +0000 (15:02 +0800)
committerBrian Paul <brianp@vmware.com>
Mon, 19 Sep 2011 14:11:51 +0000 (08:11 -0600)
commitf1ddde5c16ef61a6c08af012af3e5f34aebaf7a0
tree2d0e2ac988543715453463cf7922f972cd9e599b
parent21b2895bd0df1b7b6f6defeff1dc2084152f51e5
mesa: fix error handling for some glGet* functions

According to the man page, it should trigger a GL_INVALID_OPERATION
while calling some glGet* functions inside glBegin and glEnd.

This patch dose handle the following functions:
 glGetBooleanv
 glGetFloatv
 glGetIntegerv
 glGetInteger64v
 glGetDoublev

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