Browse Source

Updated meshoptimizer.

Бранимир Караџић 4 years ago
parent
commit
77b1af0e8c

+ 3 - 1
3rdparty/meshoptimizer/src/vertexcodec.cpp

@@ -77,6 +77,8 @@
 #endif
 
 #ifdef SIMD_WASM
+#undef __DEPRECATED
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
 #include <wasm_simd128.h>
 #endif
 
@@ -1028,7 +1030,7 @@ static unsigned int getCpuFeatures()
 	return cpuinfo[2];
 }
 
-unsigned int cpuid = getCpuFeatures();
+static unsigned int cpuid = getCpuFeatures();
 #endif
 
 } // namespace meshopt

+ 1 - 0
3rdparty/meshoptimizer/src/vertexfilter.cpp

@@ -52,6 +52,7 @@
 #endif
 
 #ifdef SIMD_WASM
+#undef __DEPRECATED
 #include <wasm_simd128.h>
 #endif