fix incorrect _MaxElement calculation
authorRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 27 Mar 2007 19:03:32 +0000 (21:03 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 27 Mar 2007 19:03:32 +0000 (21:03 +0200)
commitcda32360925d84072a69c6fc0bfebbfe07d90ebc
tree782a8f5320248a5976a62d5dd91d49aa95484eed
parent9b9e056615bc63d5498feb6999bd4df431170022
fix incorrect _MaxElement calculation

The calculation of _MaxElement was wrong if the stride was larger than
elementSize, which lead to rejection of every DrawElements call which accessed
the maximum element if CheckArrayBounds was enabled.
src/mesa/main/varray.c