mesa: change _mesa_inside_dlist_begin_end() to handle PRIM_UNKNOWN
authorBrian Paul <brianp@vmware.com>
Thu, 2 May 2013 01:15:32 +0000 (19:15 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 2 May 2013 15:03:15 +0000 (09:03 -0600)
commit84e62b735883b10249995c70dd72f3a275953d71
tree604899285e7520cb6bf7216a16bf7044c9915507
parentdaf19f28c6fca130cd3c786cc0763f7f753d9008
mesa: change _mesa_inside_dlist_begin_end() to handle PRIM_UNKNOWN

If the currently compiled primitive state is PRIM_UNKNOWN we should
not return true from _mesa_inside_dlist_begin_end().  This lets us
simplify the calls to that function.

Note, the call to _mesa_inside_dlist_begin_end() in vbo_save_EndList()
should have probably been checking for PRIM_UNKNOWN too, but it wasn't.
So there's no code change change.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/context.h
src/mesa/main/dlist.c