Fixed crash when reading out of bounds.

This commit is contained in:
Бранимир Караџић
2019-07-22 19:35:29 -07:00
parent c3f87bd94b
commit 6fc9933183

View File

@@ -252,6 +252,11 @@ namespace bimg
const char* getName(TextureFormat::Enum _format)
{
if (_format >= TextureFormat::Count)
{
return "Unknown?!";
}
return s_textureFormatName[_format];
}