JOGL PNG "bug"?

Posted by Niya on
URL: https://forum.jogamp.org/JOGL-PNG-bug-tp4025858.html

Hi all,

I'm trying to load a PNG image as texture data (because it wasn't working directly creating it from the stream with TextureIO.newTexture())

Code:
    final TextureData td = TextureIO.newTextureData(RPGPlusCanvas.getGlAutoDrawable().getGLProfile(), getClass().getResource("/assets/images/8tiles_75/City_Road_Thru_4x4_NE.png"), GL2.GL_RGBA, GL2.GL_UNSIGNED_BYTE, false, TextureIO.PNG);
    mTest = TextureIO.newTexture(td);

This leads to an exception being thrown:
javax.media.opengl.GLException: format 0x1404 not supported [yet], pls notify the maintainer in case this is our bug.

And so I'm not sure if this is something I'm doing wrong, or how to fix it.