summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/bufferobj.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-04-26 01:17:47 +0200
committerMarek Olšák <[email protected]>2013-05-11 23:45:01 +0200
commit081c789c3e1c6896bd8446d67db4a6740efdf92d (patch)
tree6682b591c3918757a8f0815a003e65db6aeb23db /src/mesa/main/bufferobj.c
parentdb38e9a0e179441f59274f6f2a751912c29872e2 (diff)
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 <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/bufferobj.c')
0 files changed, 0 insertions, 0 deletions