Re: Textures - program works on one machine, but not on another.
Posted by ralphrmartin on Feb 28, 2011; 9:17am
URL: https://forum.jogamp.org/Textures-program-works-on-one-machine-but-not-on-another-tp2566528p2593530.html
Oh dear. When I added the debugging code on the machine with the AMD display, textures worked fine. Just to check, I went back to the version without the debugging code, and I again got incorrect behaviour. This is beginning to seem like a bug...
In summary
public void init(GLAutoDrawable drawable) {
GL _gl = drawable.getGL();
_gl = _gl.getContext().setGL( GLPipelineFactory.create("javax.media.opengl.Debug", null, _gl, null) );
_gl = _gl.getContext().setGL( GLPipelineFactory.create("javax.media.opengl.Trace", null, _gl, new Object[] { System.err } ) );
GL2 gl= _gl.getGL2();
gl.glClearColor(0.2f, 0.3f, 0.2f, 1.0f);
}
works OK
but
public void init(GLAutoDrawable drawable) {
GL2 gl = drawable.getGL().getGL2();
gl.glClearColor(0.2f, 0.3f, 0.2f, 1.0f);
}
does not.