Watch out for autodoublebuffer

I’ve been trying to figure out why on one of my computers, the animations was all twitchy and spaz like. Looks like with JOGL, double buffering is automatically handled. If only I knew this before spending the day pulling my hair out over this problem.

So in my code I’m calling swapBuffers() thinking I have too. I’m just posting this info for those of you learning OpenGL to know you don’t have to make that call. You can but you would have to disable autodoublebuffer.

oy…

http://download.java.net/media/jogl/builds/archive/jogl-2.x-docs/javax/media/opengl/GLEventListener.html#display(javax.media.opengl.GLAutoDrawable)

… as documented, http://en.wikipedia.org/wiki/RTFM :slight_smile:

Granted … the default modes, swapBuffer and GLCanvas and NEWT’s JOGL GLWindow
‘feature’ of making the GLContext current when handling window and i/o events
is not really intuitive. See http://download.java.net/media/jogl/builds/archive/jogl-2.x-docs/com/sun/javafx/newt/opengl/GLWindow.html .

Cheers, Sven