Updated meshoptimizer.

This commit is contained in:
Бранимир Караџић
2019-10-06 22:44:14 -07:00
parent 49233e72c7
commit ee8989e416
7 changed files with 136 additions and 65 deletions

View File

@@ -161,9 +161,6 @@ static void writeTriangle(void* destination, size_t offset, size_t index_size, u
static_cast<unsigned short*>(destination)[offset + 2] = (unsigned short)(c);
}
else
#ifdef __EMSCRIPTEN__
if (index_size == 4) // work around Edge (ChakraCore) bug - without this compiler assumes index_size==2
#endif
{
static_cast<unsigned int*>(destination)[offset + 0] = a;
static_cast<unsigned int*>(destination)[offset + 1] = b;