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

According the man page, trigger a GL_INVALID_VALUE if size < 0.

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