gallium: Don't allocate a vertex buffer until after setting the prim type.
authorBrian <brian.paul@tungstengraphics.com>
Tue, 22 Jan 2008 23:37:19 +0000 (16:37 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 22 Jan 2008 23:37:19 +0000 (16:37 -0700)
commit59e8f3e5e91f27c5d12b810375247fb1ddea68fe
tree7665e2b4ada87dbdf4c8390056261134c706fec6
parent52264ec53d8d3b20ed7575e2ce09856cb15ab461
gallium: Don't allocate a vertex buffer until after setting the prim type.

The vertex size may depend on whether we're drawing points, lines or triangles.
src/mesa/pipe/draw/draw_vbuf.c