diff --git a/src/image.cpp b/src/image.cpp index a454b84..015dab2 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -252,6 +252,11 @@ namespace bimg const char* getName(TextureFormat::Enum _format) { + if (_format >= TextureFormat::Count) + { + return "Unknown?!"; + } + return s_textureFormatName[_format]; }