问题
I'm getting this warning in the console:
WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data
After switching between png files, it seems the warning is appearing because I was using a 16 bit PNG image. Why is this? Should I ignore it and stick with 16 bit or use 8 bit?
回答1:
For those that are Googling this error (like I did), my answer was that my PNGs were interlaced. They would still load, but display the above error. Short answer, switch interlacing to none when you save out of your image editor (I'm using Photoshop CS6).
来源:https://stackoverflow.com/questions/10876968/why-is-slick-giving-me-this-warning-regarding-png-data