From 36dc03f3b02361929af2df08ce2581db6f609559 Mon Sep 17 00:00:00 2001 From: Manuel Kraemer Date: Mon, 11 Jun 2012 07:53:10 -0700 Subject: [PATCH] fix memory allocation problem : vertex size is 3 floats... --- regression/common/shape_utils.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/regression/common/shape_utils.h b/regression/common/shape_utils.h index 1af17de4..22036305 100644 --- a/regression/common/shape_utils.h +++ b/regression/common/shape_utils.h @@ -353,8 +353,7 @@ template void createVertices( shape const * sh, HbrMesh * mesh, std::vector & verts ) { int nverts = sh->getNverts(); - - verts.resize(nverts); + verts.resize(nverts*3); T v; for(int i=0;i