MikePopoloski / SharpBgfx

C# bindings for the bgfx graphics library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VertexLayout.HasAttribute: wrong comparasion

PowerStateFailure opened this issue · comments

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

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