MikePopoloski / SharpBgfx

C# bindings for the bgfx graphics library
MIT License
169 stars 30 forks source link

VertexLayout.HasAttribute: wrong comparasion #12

Closed PowerStateFailure closed 7 years ago

PowerStateFailure commented 7 years ago

There should be return ptr->Attributes[(int)attribute] != UInt16.MaxValue; instead of return ptr->Attributes[(int)attribute] != 0xFF;

See https://github.com/bkaradzic/bgfx/blob/master/src/vertexdecl.cpp#L162

MikePopoloski commented 7 years ago

Nice catch. I'll get that fixed up when I get a chance.