svga: check min_index, max_index before assertions
authorBrian Paul <brianp@vmware.com>
Thu, 11 Feb 2010 23:54:48 +0000 (16:54 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 11 Feb 2010 23:54:48 +0000 (16:54 -0700)
commit04d35714a6e10f96f8a216c626f46fdfbc2e5c1f
tree6e9b798447c3f7e76ecab75616d09ab0732b3e01
parent92098438784887fd6005918794476cfbbeac5035
svga: check min_index, max_index before assertions

It's possible for min_index and max_index to be ~0 if the min/max
values were not actually set or computed in the state tracker.
Skip some assertions in that case.

This only effects the debug build error checking.

(cherry picked from commit 408f32dc165b36eb5ec0e2bbc7dcecd28f3a62d3)
src/gallium/drivers/svga/svga_draw.c