Re: Textures - program works on one machine, but not on another.
Posted by
Wade Walker on
Mar 06, 2011; 9:45pm
URL: https://forum.jogamp.org/Textures-program-works-on-one-machine-but-not-on-another-tp2566528p2643387.html
I'm still not quite sure what the bug is. The fact that three of the textures display properly seems to indicate that it's a bug in your program somehow, rather than a bug in JOGL. Why would JOGL draw some textures properly but not others, with the exact same code? Textures are all the same to JOGL, unless maybe they're radically different sizes or pixel formats

I'd suggest writing a simple test program that just textures a single quad with one texture (there's an example at
https://github.com/sgothel/jogl/blob/master/src/test/com/jogamp/opengl/test/junit/jogl/texture/TestGrayTextureFromFileAWTBug417.java). Then set that texture path to each of your textures from ToyShader, one after the other. If the same ones still don't work, check their sizes and formats to make sure they're all the same. In any case, it'll be much simpler to isolate the problem (and possibly submit a bug report) with a one-page test than in a full-size project.