mesa: skip _MaxElement computation unless driver needs strict bounds checking
authorMarek Olšák <maraeo@gmail.com>
Thu, 25 Apr 2013 23:17:47 +0000 (01:17 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sat, 11 May 2013 21:45:01 +0000 (23:45 +0200)
commit081c789c3e1c6896bd8446d67db4a6740efdf92d
tree6682b591c3918757a8f0815a003e65db6aeb23db
parentdb38e9a0e179441f59274f6f2a751912c29872e2
mesa: skip _MaxElement computation unless driver needs strict bounds checking

If Const.CheckArrayBounds is false, the only code using _MaxElement is
glDrawRangeElements, so I changed it and explained in the code why
_MaxElement is not very useful there.

BTW, the big magic number was copied to the letter
from _mesa_update_array_max_element.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/state.c
src/mesa/vbo/vbo_exec_array.c