Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/indexgenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ size_t meshopt_generateVertexRemap(unsigned int* destination, const unsigned int
using namespace meshopt;

assert(indices || index_count == vertex_count);
assert(!indices || index_count % 3 == 0);
assert(vertex_size > 0 && vertex_size <= 256);

meshopt_Allocator allocator;
Expand Down Expand Up @@ -236,7 +235,6 @@ size_t meshopt_generateVertexRemapMulti(unsigned int* destination, const unsigne
using namespace meshopt;

assert(indices || index_count == vertex_count);
assert(index_count % 3 == 0);
assert(stream_count > 0 && stream_count <= 16);

for (size_t i = 0; i < stream_count; ++i)
Expand Down Expand Up @@ -313,8 +311,6 @@ void meshopt_remapVertexBuffer(void* destination, const void* vertices, size_t v

void meshopt_remapIndexBuffer(unsigned int* destination, const unsigned int* indices, size_t index_count, const unsigned int* remap)
{
assert(index_count % 3 == 0);

for (size_t i = 0; i < index_count; ++i)
{
unsigned int index = indices ? indices[i] : unsigned(i);
Expand All @@ -329,7 +325,6 @@ void meshopt_generateShadowIndexBuffer(unsigned int* destination, const unsigned
using namespace meshopt;

assert(indices);
assert(index_count % 3 == 0);
assert(vertex_size > 0 && vertex_size <= 256);
assert(vertex_size <= vertex_stride);

Expand Down Expand Up @@ -368,7 +363,6 @@ void meshopt_generateShadowIndexBufferMulti(unsigned int* destination, const uns
using namespace meshopt;

assert(indices);
assert(index_count % 3 == 0);
assert(stream_count > 0 && stream_count <= 16);

for (size_t i = 0; i < stream_count; ++i)
Expand Down