Login  Register

Re: Loading texture error

Posted by Demoscene Passivist on Jul 05, 2010; 12:59pm
URL: https://forum.jogamp.org/Loading-texture-error-tp942252p944216.html

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.