mesa: Fix off-by-one error in transform feedback size check.
authorPaul Berry <stereotype441@gmail.com>
Thu, 8 Dec 2011 19:23:22 +0000 (11:23 -0800)
committerPaul Berry <stereotype441@gmail.com>
Tue, 20 Dec 2011 22:32:16 +0000 (14:32 -0800)
commit38b118d49ddbc8bd5d96cc0d23d681887fca045e
tree3cf12003ff9d9fb36b2c65234d8c59c017f3ad7c
parent942d452047431f7463d3fad5e7cb92dfd81fd0ac
mesa: Fix off-by-one error in transform feedback size check.

In _mesa_BindBufferRange(), we need to verify that the offset and size
specified by the client do not exceed the size of the underlying
buffer.  We were accidentally doing this check using ">=" rather than
">", so we were generating a bogus error if the client specified an
offset and size that fit exactly in the underlying buffer.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/transformfeedback.c