mesa: check_index_bounds off-by-one fix
authorRoland Scheidegger <sroland@vmware.com>
Mon, 6 Feb 2012 00:04:28 +0000 (01:04 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 6 Feb 2012 00:04:28 +0000 (01:04 +0100)
commit1f4a853b1e4691400ab832c589b044b659c20c06
tree0d515889011b4110db0f1b962c3cad706ca9fed2
parentb3c84a80cd7f6d7d6796cb196422c7be44ea47aa
mesa: check_index_bounds off-by-one fix

in check_index_bounds the comparison needs to be "greater equal" since
contrary to the name _MaxElement is the count of the array (this matches
similar code in vbo_exec_DrawRangeElementsBaseVertex).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/api_validate.c