fix memory allocation problem : vertex size is 3 floats...

This commit is contained in:
Manuel Kraemer 2012-06-11 07:53:10 -07:00
parent b121bf69e3
commit 36dc03f3b0

View File

@ -353,8 +353,7 @@ template <class T> void
createVertices( shape const * sh, HbrMesh<T> * mesh, std::vector<float> & verts ) {
int nverts = sh->getNverts();
verts.resize(nverts);
verts.resize(nverts*3);
T v;
for(int i=0;i<nverts; i++ ) {