Inochi2D / inochi2d

Inochi2D SDK - Bring your characters to life
https://inochi2d.com
BSD 2-Clause "Simplified" License
1.3k stars 50 forks source link

Make ShallowTexture constructor throw exception if image file can't be loaded #8

Closed LunaTheFoxgirl closed 1 year ago

LunaTheFoxgirl commented 3 years ago

Currently damaged or invalid files sent in to ShallowTexture is likely to cause segmentation faults. Avoid that by throwing an exception when instantiating ShallowTexture with an invalid texture.