Re: GL_RGB or GL_BGR in TEXTURE_2D_ARRAY?
Posted by Worker on Jun 01, 2011; 2:45am
URL: https://forum.jogamp.org/GL-RGB-or-GL-BGR-in-TEXTURE-2D-ARRAY-tp3008936p3009205.html
Oh man
make a simple
gl.glTexImage2D( GL2.GL_TEXTURE_2D, 0, textures[0].getPixelOrCompressionsFormat(), textures[0].getWidth(), textures[0].getHeight(), 0, textures[0].getPixelOrCompressionsFormat(), GL2.GL_UNSIGNED_BYTE, datas);
and it works .