Handle case where subdivision in zero

This commit is contained in:
Irlan 2019-04-20 13:51:03 -03:00
parent 323ba37b73
commit 1e85ea0a36

View File

@ -194,7 +194,7 @@ void smCreateMesh(smMesh& output, u32 subdivisions)
assert(map.pairCount < edgeVertexPairCount);
assert(out.vertexCount < vertexCount);
assert(out.vertexCount <= vertexCount);
assert(out.indexCount == indexCount);
output.vertexCount = out.vertexCount;