This commit is contained in:
Branimir Karadžić 2016-03-21 13:10:11 -07:00
parent c3ece49892
commit 3aa9538a9a

View file

@ -808,6 +808,7 @@ namespace bgfx
const char* getName(SpvDecoration::Enum _enum)
{
BX_UNUSED(s_spvDecorationInfo);
BX_CHECK(_enum <= SpvDecoration::Count, "Unknown decoration id %d.", _enum);
return _enum <= SpvDecoration::Count
? s_spvDecoration[_enum]