mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-13 23:50:09 +00:00
fix memory allocation problem : vertex size is 3 floats...
This commit is contained in:
parent
b121bf69e3
commit
36dc03f3b0
@ -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++ ) {
|
||||
|
Loading…
Reference in New Issue
Block a user