Closed PowerStateFailure closed 7 years ago
There should be return ptr->Attributes[(int)attribute] != UInt16.MaxValue; instead of return ptr->Attributes[(int)attribute] != 0xFF;
return ptr->Attributes[(int)attribute] != UInt16.MaxValue;
return ptr->Attributes[(int)attribute] != 0xFF;
See https://github.com/bkaradzic/bgfx/blob/master/src/vertexdecl.cpp#L162
Nice catch. I'll get that fixed up when I get a chance.
There should be
return ptr->Attributes[(int)attribute] != UInt16.MaxValue;
instead ofreturn ptr->Attributes[(int)attribute] != 0xFF;
See https://github.com/bkaradzic/bgfx/blob/master/src/vertexdecl.cpp#L162