Fixed major bug in renderer.

All primitives pointed to the same vertex list.