Skip to content

Commit

Permalink
simplify: Clean up old meshopt_simplifyDebug symbols
Browse files Browse the repository at this point in the history
We no longer rely on these in gltfpack.
  • Loading branch information
zeux committed Jul 12, 2024
1 parent b42333e commit 3c6f9b0
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/simplifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1552,12 +1552,6 @@ enum
meshopt_SimplifyInternalDebug = 1 << 30
};

#ifndef NDEBUG
MESHOPTIMIZER_API unsigned char* meshopt_simplifyDebugKind = NULL;
MESHOPTIMIZER_API unsigned int* meshopt_simplifyDebugLoop = NULL;
MESHOPTIMIZER_API unsigned int* meshopt_simplifyDebugLoopBack = NULL;
#endif

size_t meshopt_simplifyEdge(unsigned int* destination, const unsigned int* indices, size_t index_count, const float* vertex_positions_data, size_t vertex_count, size_t vertex_positions_stride, const float* vertex_attributes_data, size_t vertex_attributes_stride, const float* attribute_weights, size_t attribute_count, const unsigned char* vertex_lock, size_t target_index_count, float target_error, unsigned int options, float* out_result_error)
{
using namespace meshopt;
Expand Down Expand Up @@ -1725,17 +1719,6 @@ size_t meshopt_simplifyEdge(unsigned int* destination, const unsigned int* indic
}
}

#ifndef NDEBUG
if (meshopt_simplifyDebugKind)
memcpy(meshopt_simplifyDebugKind, vertex_kind, vertex_count);

if (meshopt_simplifyDebugLoop)
memcpy(meshopt_simplifyDebugLoop, loop, vertex_count * sizeof(unsigned int));

if (meshopt_simplifyDebugLoopBack)
memcpy(meshopt_simplifyDebugLoopBack, loopback, vertex_count * sizeof(unsigned int));
#endif

// convert resulting indices back into the dense space of the larger mesh
if (sparse_remap)
for (size_t i = 0; i < result_count; ++i)
Expand Down

0 comments on commit 3c6f9b0

Please sign in to comment.