Texture renderer fails to initialize

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Texture renderer fails to initialize

kendzi
I found one problem during the migration to jogl 2.3.1. For some reason that code for crating new drawable texture fails with an error.

The code:
   TextureRenderer tr = new TextureRenderer(img.getWidth(), img.getHeight(), true, true);

And the error is:
com.jogamp.opengl.GLException: Could not find PixelFormat for format and/or type: PixelAttributes[fmt 0x80e1, type 0x8367, null]
	at com.jogamp.opengl.util.GLPixelBuffer$GLPixelAttributes.<init>(GLPixelBuffer.java:494) ~[jogl-all-2.3.1.jar:2.3.1]
	at com.jogamp.opengl.util.GLPixelBuffer$GLPixelAttributes.<init>(GLPixelBuffer.java:460) ~[jogl-all-2.3.1.jar:2.3.1]
	at com.jogamp.opengl.util.texture.awt.AWTTextureData.createFromImage(AWTTextureData.java:217) ~[jogl-all-2.3.1.jar:2.3.1]
	at com.jogamp.opengl.util.texture.awt.AWTTextureData.<init>(AWTTextureData.java:127) ~[jogl-all-2.3.1.jar:2.3.1]
	at com.jogamp.opengl.util.awt.TextureRenderer.init(TextureRenderer.java:636) ~[jogl-all-2.3.1.jar:2.3.1]
	at com.jogamp.opengl.util.awt.TextureRenderer.<init>(TextureRenderer.java:139) ~[jogl-all-2.3.1.jar:2.3.1]
	at com.jogamp.opengl.util.awt.TextureRenderer.<init>(TextureRenderer.java:130) ~[jogl-all-2.3.1.jar:2.3.1]
	at kendzi.jogl.texture.builder.BwFileTextureBuilder.loadTextureRenderer(BwFileTextureBuilder.java:102) ~[kendzi3d.jar:?]

I don't have idea what is wrong.

Reply | Threaded
Open this post in threaded view
|

Re: Texture renderer fails to initialize

gouessej
Administrator
Hi

Please fill a bug report with the image file you used to get this stack trace.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Texture renderer fails to initialize

kendzi