Fix glDrawElements + VBO rendering when ptr/offset is not zero.
authorBrian <brian.paul@tungstengraphics.com>
Wed, 24 Oct 2007 20:40:09 +0000 (14:40 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 24 Oct 2007 20:40:09 +0000 (14:40 -0600)
commit7636aac54bb357ce907ae6cc2c41f32957faecf3
treea4aebd346f243a63bc1ed86c7dc3150820a74107
parent40a0b053f78acd0a08f6876518b8e9301480431f
Fix glDrawElements + VBO rendering when ptr/offset is not zero.

When an index VBO is bound, glDrawElement's indices pointer is really an
offset into the element buffer.  Add that offset to the prims[i].start
value before calling pipe->draw_elements().
Fixes vbo.c conform test.
src/mesa/state_tracker/st_draw.c