Login  Register

Re: Loading texture error

Posted by GuilhermeAmorim on Jul 05, 2010; 3:38pm
URL: https://forum.jogamp.org/Loading-texture-error-tp942252p944532.html

Demoscene Passivist wrote
Hi!
I got the same error a while ago. I'm relatively sure the bug lies on ur side. To solve the issue use com.jogamp.opengl.util.texture.Texture/TextureIO to do ur texture handling. Its really easy to use and frees u from the burden of moving the pixel bytes by hand, and as far as I can see in ur code theres no reason why u must use the direct bytebuffer stuff.
Thanks!!

What a shame, I didn't see these classes before!
I can't test right know, but I'll test and return a feedback as soon as possible.
It must solve the problem for real.

and again: Thanks!!!