GarageGames/Torque3D — pull request #160 by eightyeight (2012-11-28 10:07:36+00:00)
Title: [Recast] Made PrimBuilder buffer resize itself

By default, the PrimBuilder expects you to specify beforehand how many vertices you will be rendering. When using the PrimBuilder to implement an OpenGL-like interface (say, for Recast's debug drawing facilities), you don't always know beforehand how many vertices will be drawn.

Now, instead of fatally asserting when more vertices are added than were expected, the code simply resizes the buffer.