st/mesa: improved draw_range_elements code
authorBrian Paul <brianp@vmware.com>
Fri, 12 Feb 2010 22:40:57 +0000 (15:40 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 12 Feb 2010 22:42:12 +0000 (15:42 -0700)
commitff37205f93eaf888e12c6587b8c7cd17d890c4e0
tree3a6967d1e4dd1e80fbbd60eeee456a053a6a5661
parentb9b4e7724e5ae80121a053ca66cee73942cc16b7
st/mesa: improved draw_range_elements code

Don't use pipe->draw_range_elements() if min_index=max_index=~0 since
that doesn't provide any useful info.

Also, implement the loop around pipe->draw_range_elements() when
nr_prims > 1.
src/mesa/state_tracker/st_draw.c