Using
https://jogamp.org/deployment/jogamp-current/archive/jogamp-fat-all.7zwith Java v1.8 on windows 11 & a RGB8 .png
I'm getting
Chosen GLCapabilities =GLCaps[wgl vid 20 arb: rgba 8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]]
INIT GL IS =jogamp.opengl.gl4.GL4bcImpl
textureData.getInternalFormat() =32849= 0x8051
Exception in thread "AWT-EventQueue-0" com.jogamp.opengl.GLException: Caught GLException: format 0x8051 not supported [yet], pls notify the maintainer in case this is our bug. on thread AWT-EventQueue-0
from the init method of an extended GLCanvas
System.out.prinbtln( "Chosen GLCapabilities =" + drawable.getChosenGLCapabilities());
System.out.prinbtln( "INIT GL IS =" + gl.getClass().getName());
System.out.prinbtln( "textureData.getInternalFormat() =" + textureData.getInternalFormat() + String.format( "= %#x", textureData.getInternalFormat() ) );
gl.glTexImage2D( GL2.GL_TEXTURE_2D, 0, textureData.getInternalFormat(), textureData.getWidth(), textureData.getHeight(), 0, textureData.getInternalFormat(), textureData.getPixelType(), textureData.getBuffer() );
which equates to GL_RGB8 according to
https://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/constant-values.html#com.jogamp.opengl.GL2.GL_RGB8which is correct.
But also happens with GL_RGBA8
I would have thought these very common, however, is there a list of platform supported formats ? or can it be obtained programmatically ?