Kenneth Graunke <kenn...@whitecape.org> writes: > can_cut_index_handle_prims() was passed an array of _mesa_prim objects > and a count, and runs a loop for that many iterations. However, it > treats the array like a pointer, repeatedly checking the first element. > > This is wasteful and bizarre. > > The VBO module will never call us with multiple primitives of different > topologies, so it's actually reasonable to just check the first element.
I'm pretty sure it will. I don't see anything in vbo_exec_Begin() making sure the new primitive is the same type as the last.
pgpkDTJUHptZ8.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev