problem using GLCanvas and GLJPanel (solved)

Hello!
I used ATI card but a few days ago I bought a NVidia card. With my ATI card, I used GLCanvas. It worked very well (testing with glDrawable.setGL(new DebugGL(glDrawable.getGL()));), but with NVidia card it doesn’t work at all. The screen is flicking, and I got this message:
WARNING: antialiasing will be disabled because the DefaultGLCapabilitiesChooser didn’t supply it

I changed the GLCanvas to GLJPanel, it doesn’t flicking, but when I resize the JFrame, my GLEventListener is reinitialized by the GLJPanel.
In the init method of my GLEventListener , I test some extension (like:GL_ARB_vertex_buffer_object) using: gl.isExtensionAvailable(glExtensionName)), but when I resize my window, and the GLEventListener reinitialize itself, the gl.isExtensionAvailable(glExtensionName)) returns always false, and then I NullPointerException for all of my VBOs.

What is the problem?

Thanks.

My problem is solved… :slight_smile:
I had a

(GLCapabilities caps = new GLCapabilities();…)
–> caps.setDoubleBuffered(false);

statement in the GLCanvas creation code.
I put it into comment and, everithing is fine now. I don’t know where this code came from. ???
What doesn’t it mean?

You are using single buffered rendering.

Double bufffering works like this:
1st surfaces is drawn on by your video card, when one is complete, it is then flipped and the one behind it gets drawn on and so on.

With single buffering your are seeing what your card is drawing at the same time which is not good.

I hope I explained that well.

thanks, i think, i understand now.