Created attachment 180 [details]
Runtime Version Check output, ran for all entries that appear in the test.bat script.
Without animator, GLCanvas does not constantly display its OpenGL scene. It displays either its component background or the scene.
To reproduce the bug, please run the test application below. When the frame is being resized by dragging its edge over, the canvas flickers between yellow and red (resp. its background and its scene). When the resize operation ends, it randomly leaves the canvas in either configuration (yellow or red).
I only reproduced that bug on a Win32 platform but I did not try any other platform. I can't objectively assume it but it may be reproducable on every platform as well.
Sample code to reproduce the bug:
public class Main
static CanvasListener listener = new CanvasListener();
public static void main(String args)
GLProfile profile = GLProfile.getMaxFixedFunc();
GLCapabilities caps = new GLCapabilities(profile);
GLCanvas canvas = new GLCanvas(caps);
Frame topLevelFrame = new Frame();
topLevelFrame.setLayout(new BoxLayout(topLevelFrame, BoxLayout.Y_AXIS));
// Animator animator = new Animator(canvas);
class CanvasListener implements GLEventListener
public void display(GLAutoDrawable arg0)
GL2 gl = arg0.getGL().getGL2();
gl.glClearColor(1.0f, 0.0f, 0.0f, 0.5f);
public void dispose(GLAutoDrawable arg0)
public void init(GLAutoDrawable arg0)
Component canvas = (Component) arg0;
public void reshape(GLAutoDrawable arg0, int arg1, int arg2, int arg3, int arg4)
the JOGL version in your test log is
tag is v2.0-rc1 ie the signed rc.
But your code would not compile with it, since it uses a GLProfile API
The GLProfile API has changed with that commit, well, I fixed that.
Thanks to your report, I have revalidated the Java2D and AWT properties,
please check JOGL: 86c164950b0a0d351fc8af3884187b10201b6237,
especially the added doc:
Hope all of this helps, thank you.
Created attachment 183 [details]
Update Main.java to work properly
> The GLProfile API has changed with that commit, well, I fixed that.
You're right. I really tested the code against Jogl rc1 but I think I put the wrong code in my bug report. Sorry for the confusion.
> Thanks to your report, I have revalidated the Java2D and AWT properties,
> please check JOGL: 86c164950b0a0d351fc8af3884187b10201b6237,
> especially the added doc:
> Hope all of this helps, thank you.
Great, thanks for this fix. I'll have a look at it as soon as I can.
At last, I could take a few minutes to test your fix. I ran the test with the autobuild of the 12/16/2010 (build 259). And... it runs perfectly!