Verified Commit a68e3d2c authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: allocate minimal amount

parent 89869532
......@@ -230,7 +230,7 @@ int BVHModelBase::addVertices(const Matrixx3f & points)
if(num_vertices + points.rows() > num_vertices_allocated)
{
num_vertices_allocated += points.rows();
num_vertices_allocated = num_vertices + (int)points.rows();
Vec3f * temp = new Vec3f[num_vertices_allocated];
if(!temp)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment