28 Apr
2020
28 Apr
'20
3:49 p.m.
On Tue, Apr 28, 2020 at 10:08 PM Jeff Smith <whydoubt(a)gmail.com> wrote:
Not a problem with the patch, but with the already-existing code. Something is off with that last D3DXOptimizeFaces test. The comment and error message both mention 2^15, but the code uses 2<<15 (2^16) instead of 1<<15 (2^15).
Yeah. Also the actual upper limit is 65534, starting from 65535 it returns an error. I have a couple patches for this and another silly mistake in that test but I don't know that it's worth it. There are way bigger issues in the area, both the test and the implementation should be redone from scratch.