mesa: fix error handling for glMapBufferRange
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 19 Sep 2011 10:25:55 +0000 (18:25 +0800)
committerBrian Paul <brianp@vmware.com>
Mon, 19 Sep 2011 14:22:18 +0000 (08:22 -0600)
commit099af9e9dfb4afa0283b0a86dc53b354a5a16ec1
treea6ea9cf5df18776e1fcd9ba5a57eeecf2c94e5fd
parent386ec5e80e34e1164d749eee2078f2dfc8ff2b57
mesa: fix error handling for glMapBufferRange

Accroding the man page, GL_INVALID_VALUE would generated if access has any
bits set other than those valid defined bits.

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