vbo: Use the new primitive restart index helper function.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 29 May 2013 15:21:14 +0000 (08:21 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 29 May 2013 21:22:04 +0000 (14:22 -0700)
commit1569709663f5ad3c339494f756bcc05f37044182
tree31d5175f5ef95532bbb145c322d98d2c25553577
parent959d076b30fce8aa9f09c68e5fe885e98c55aaa5
vbo: Use the new primitive restart index helper function.

This gets the correct restart index for unsigned byte/short types when
using GL_PRIMITIVE_RESTART_FIXED_INDEX.

NOTE: This is a candidate for the 9.1 branch.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/vbo/vbo_exec_array.c
src/mesa/vbo/vbo_primitive_restart.c