diff --git a/src/vertexdecl.cpp b/src/vertexdecl.cpp index 6c15368d..f26c5f86 100644 --- a/src/vertexdecl.cpp +++ b/src/vertexdecl.cpp @@ -177,7 +177,7 @@ namespace bgfx for (uint32_t attr = 0; attr < Attrib::Count; ++attr) { - if (0xff != _decl.m_attributes[attr]) + if (UINT16_MAX != _decl.m_attributes[attr]) { uint8_t num; AttribType::Enum type;