mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-17 20:52:38 +01:00
Fixed crash when reading out of bounds.
This commit is contained in:
@@ -252,6 +252,11 @@ namespace bimg
|
||||
|
||||
const char* getName(TextureFormat::Enum _format)
|
||||
{
|
||||
if (_format >= TextureFormat::Count)
|
||||
{
|
||||
return "Unknown?!";
|
||||
}
|
||||
|
||||
return s_textureFormatName[_format];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user