Is there a dtRealloc? If yes, it would be better to realloc m_vertices and to memcpy in it.