mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed missing attribute name.
This commit is contained in:
parent
73c8f54344
commit
5023791028
1 changed files with 20 additions and 19 deletions
|
@ -87,27 +87,28 @@ namespace bgfx
|
|||
_asInt = !!(val&(1<<7) );
|
||||
}
|
||||
|
||||
static const char* s_attrName[Attrib::Count] =
|
||||
{
|
||||
"Attrib::Position",
|
||||
"Attrib::Normal",
|
||||
"Attrib::Tangent",
|
||||
"Attrib::Color0",
|
||||
"Attrib::Color1",
|
||||
"Attrib::Indices",
|
||||
"Attrib::Weights",
|
||||
"Attrib::TexCoord0",
|
||||
"Attrib::TexCoord1",
|
||||
"Attrib::TexCoord2",
|
||||
"Attrib::TexCoord3",
|
||||
"Attrib::TexCoord4",
|
||||
"Attrib::TexCoord5",
|
||||
"Attrib::TexCoord6",
|
||||
"Attrib::TexCoord7",
|
||||
};
|
||||
|
||||
const char* getAttribName(Attrib::Enum _attr)
|
||||
{
|
||||
static const char* attrName[Attrib::Count] =
|
||||
{
|
||||
"Attrib::Position",
|
||||
"Attrib::Normal",
|
||||
"Attrib::Color0",
|
||||
"Attrib::Color1",
|
||||
"Attrib::Indices",
|
||||
"Attrib::Weights",
|
||||
"Attrib::TexCoord0",
|
||||
"Attrib::TexCoord1",
|
||||
"Attrib::TexCoord2",
|
||||
"Attrib::TexCoord3",
|
||||
"Attrib::TexCoord4",
|
||||
"Attrib::TexCoord5",
|
||||
"Attrib::TexCoord6",
|
||||
"Attrib::TexCoord7",
|
||||
};
|
||||
|
||||
return attrName[_attr];
|
||||
return s_attrName[_attr];
|
||||
}
|
||||
|
||||
void dump(const VertexDecl& _decl)
|
||||
|
|
Loading…
Reference in a new issue