libgdx/libgdx — pull request #166 by cwjenkins (2012-12-24 23:12:04+00:00)
Title: Added getFailureReason to Gdx2DPixmap

Passes the const char* 'failure_reason' from stb_image to a Exception in Gdx2dPixmap if something goes wrong when loading an image.

I just started using libgdx and the first problem I ran into was attempting to load a 'progressive' jpeg which, after some time digging into libgdx, turns out isn't supported. I hope this will help new comers like myself determine why an image failed to load.