Update of /cvsroot/jake2/jake2/src/jake2/render
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28648/src/jake2/render
Modified Files:
JoglBase.java
Log Message:
this will solve the flickering bug on "Loading"
(but only with a new JOGL-release)
Index: JoglBase.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/render/JoglBase.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** JoglBase.java 16 Jul 2004 10:11:34 -0000 1.4
--- JoglBase.java 16 Jul 2004 12:12:29 -0000 1.5
***************
*** 200,203 ****
--- 200,206 ----
canvas.setNoAutoRedrawMode(true);
+ // TODO this and a new JOGL-release solves the flickering bug (Loading)
+ // change also GLimp_EndFrame()
+ // canvas.setAutoSwapBufferMode(false);
canvas.addGLEventListener(this);
***************
*** 294,298 ****
gl.glFlush();
// swap buffer
! // but jogl has no method to swap
}
protected void GLimp_BeginFrame(float camera_separation) {
--- 297,302 ----
gl.glFlush();
// swap buffer
! // TODO this and a new JOGL-release solves the flickering bug (Loading)
! // canvas.swapBuffers();
}
protected void GLimp_BeginFrame(float camera_separation) {
|