vbo: replace assertion with conditional in vbo_compute_max_verts()
authorBrian Paul <brianp@vmware.com>
Tue, 27 Oct 2015 19:50:10 +0000 (13:50 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 28 Oct 2015 17:03:27 +0000 (11:03 -0600)
commit2bf224b3f96f926ba442d2b33a6f50d33e31cee0
tree328be218b2f256f9034319cb749744c92513fc6f
parent8e9c3070bf45cd33a77537c6769d422d2c9fa8c3
vbo: replace assertion with conditional in vbo_compute_max_verts()

With just the right sequence of per-vertex commands and state changes,
it's possible for this assertion to fail (such as with viewperf11's
lightwave-06-1 test).  Instead of asserting, return 0 so that the
caller knows the VBO is full and needs to be flushed.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/vbo/vbo_context.h