Why is Slick giving me this warning regarding PNG data?

后端 未结 1 1553
半阙折子戏
半阙折子戏 2021-01-27 04:34

I\'m getting this warning in the console:

WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data

After switching between png

1条回答
  •  醉话见心
    2021-01-27 05:25

    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).

    0 讨论(0)
提交回复
热议问题