Update zeux/meshoptimizer

This commit is contained in:
Philip Rideout
2018-12-06 10:46:34 -08:00
parent 79764e7e02
commit c9752d8310
2 changed files with 7 additions and 4 deletions

View File

@@ -12,7 +12,7 @@
#define SIMD_SSE
#endif
#if !defined(SIMD_SSE) && defined(WIN32) && (defined(_M_IX86) || defined(_M_X64))
#if !defined(SIMD_SSE) && defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))
#define SIMD_SSE
#define SIMD_FALLBACK
#include <intrin.h>

View File

@@ -8,12 +8,15 @@ This folder was created as follows:
rm -rf demo tools
mv LICENSE.md LICENSE
Also removed lines 11 - 24 vertexcodec.cpp to disable SSE, which caused build
issues with windows.
Also added this to the CMakeLists.txt:
if(CLANG_CL)
# Clang for Windows needs an additional flag for SSSE3 instructions.
target_compile_options(meshoptimizer PRIVATE -mssse3)
endif()
To update the library, you can do this:
curl -L -O https://github.com/zeux/meshoptimizer/archive/master.zip
unzip master.zip
cp -r meshoptimizer-master/src/ meshoptimizer/src/
in vertexcodec.cpp, replace _MSC_VER with WIN32