Begin pointer can change after reallocation

This commit is contained in:
Irlan
2019-04-22 14:38:51 -03:00
parent ecb4df45f4
commit a5a49df8c1
2 changed files with 8 additions and 4 deletions

View File

@@ -338,8 +338,12 @@ void b3QHull::Set(u32 vtxStride, const void* vtxBase, u32 vtxCount, bool simplif
++iface;
}
vertices = hullVertices.Begin();
vertexCount = hullVertices.Count();
edges = hullEdges.Begin();
edgeCount = hullEdges.Count();
faces = hullFaces.Begin();
planes = hullPlanes.Begin();
faceCount = hullFaces.Count();
// Validate