Updated meshoptimizer.

This commit is contained in:
Бранимир Караџић
2019-10-06 22:44:14 -07:00
parent 49233e72c7
commit ee8989e416
7 changed files with 136 additions and 65 deletions

View File

@@ -1443,6 +1443,9 @@ size_t meshopt_simplifyPoints(unsigned int* destination, const float* vertex_pos
size_t target_cell_count = target_vertex_count;
if (target_cell_count == 0)
return 0;
meshopt_Allocator allocator;
Vector3* vertex_positions = allocator.allocate<Vector3>(vertex_count);