vbo: convert display list GL_LINE_LOOP prims to GL_LINE_STRIP
authorBrian Paul <brianp@vmware.com>
Fri, 16 Oct 2015 04:57:08 +0000 (22:57 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 20 Oct 2015 18:52:41 +0000 (12:52 -0600)
commitf2215809377234aa2073502587e1803c8952bea3
treeb1e17188d0373368f6333af599654e46db63b30b
parentd79595bf0230824b241545c0a0bd2294525df088
vbo: convert display list GL_LINE_LOOP prims to GL_LINE_STRIP

When a long GL_LINE_LOOP prim was split across primitives we drew
stray lines.  See previous commit for details.

This patch converts GL_LINE_LOOP prims into GL_LINE_STRIP prims so
that drivers don't have to worry about the _mesa_prim::begin/end flags.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81174

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Acked-by: Sinclair Yeh <syeh@vmware.com>
src/mesa/vbo/vbo_save_api.c