- // Build ssg structure
- t->vtlist = new sgVec3 [ 4 ];
- t->vnlist = new sgVec3 [ 4 ];
- t->tclist = new sgVec2 [ 4 ];
+ // Allocate ssg structure
+ sgVec3 *vtlist = new sgVec3 [ 4 ];
+ t->vec3_ptrs.push_back( vtlist );
+ sgVec3 *vnlist = new sgVec3 [ 4 ];
+ t->vec3_ptrs.push_back( vnlist );
+ sgVec2 *tclist = new sgVec2 [ 4 ];
+ t->vec2_ptrs.push_back( tclist );