image_load doesn't give good errors

Reporter: fundies  |  Status: open  |  Last Modified: April 13, 2020, 06:29:23 PM
image_load doesn't error when a format isn't supported and instead just runs bmp loader and errors there when it cant read header data. If an image format isn't supported it should give an error message saying so before trying to load it as a bmp.

you can reproduce this by building a game with libpng extension off and trying to load a png using sprite_add or whatever.

Please sign in to post comments, or you can view this issue on GitHub.