Browse Source

Updated meshoptimizer.

Бранимир Караџић 5 years ago
parent
commit
0197e2c1ca
1 changed files with 2 additions and 2 deletions
  1. 2 2
      3rdparty/meshoptimizer/src/simplifier.cpp

+ 2 - 2
3rdparty/meshoptimizer/src/simplifier.cpp

@@ -1160,7 +1160,7 @@ static float interpolate(float y, float x0, float y0, float x1, float y1, float
 
 } // namespace meshopt
 
-#if TRACE
+#ifndef NDEBUG
 unsigned char* meshopt_simplifyDebugKind = 0;
 unsigned int* meshopt_simplifyDebugLoop = 0;
 #endif
@@ -1304,7 +1304,7 @@ size_t meshopt_simplify(unsigned int* destination, const unsigned int* indices,
 	dumpLockedCollapses(result, result_count, vertex_kind);
 #endif
 
-#if TRACE
+#ifndef NDEBUG
 	if (meshopt_simplifyDebugKind)
 		memcpy(meshopt_simplifyDebugKind, vertex_kind, vertex_count);