diff options
author | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2021-01-09 10:04:09 -0800 |
---|---|---|
committer | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2021-01-11 06:07:54 -0800 |
commit | 59b61a1f64c2d77655cef89575cfd172c1e36832 (patch) | |
tree | 0eddf2bdfc416b1c77d77b1549926408778fbf35 /thirdparty/meshoptimizer/indexcodec.cpp | |
parent | a33dc4274cdc7b46c7586e832baded992038bea8 (diff) | |
download | redot-engine-59b61a1f64c2d77655cef89575cfd172c1e36832.tar.gz |
Scale error in mesh optimizer so it uses absolute scale.
Switch to simplify sloppy for another try.
Update to meshoptimizer e3f53f66e7a35b9b8764bee478589d79e34fa698.
Diffstat (limited to 'thirdparty/meshoptimizer/indexcodec.cpp')
-rw-r--r-- | thirdparty/meshoptimizer/indexcodec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/meshoptimizer/indexcodec.cpp b/thirdparty/meshoptimizer/indexcodec.cpp index 5c35eb43ae..e4495b8586 100644 --- a/thirdparty/meshoptimizer/indexcodec.cpp +++ b/thirdparty/meshoptimizer/indexcodec.cpp @@ -108,7 +108,7 @@ static unsigned int decodeVByte(const unsigned char*& data) for (int i = 0; i < 4; ++i) { unsigned char group = *data++; - result |= (group & 127) << shift; + result |= unsigned(group & 127) << shift; shift += 7; if (group < 128) |