draw: Don't assert if indices point outside vertex buffer.
authorJosé Fonseca <jfonseca@vmware.com>
Sun, 22 Aug 2010 01:26:09 +0000 (02:26 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 22 Aug 2010 01:26:44 +0000 (02:26 +0100)
commitae34a6393e6519dc32e53fa8407155e8679fc257
tree356c08862b6868d9e8c5463fdd964bf931e51719
parentce9a6e6a7d855bac9bc088a97a19373bb0484829
draw: Don't assert if indices point outside vertex buffer.

This is valid input, and asserting here does causes the test suites that
verify this to crash.

Also, the assert was wrongly accepting the case

  max_index == vert_info->count

which, IIUC, is the first vertex outside the buffer. Assuming the
vert_info->count is precise (which often is not the case).
src/gallium/auxiliary/draw/draw_pipe.c