aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2004-07-16 12:12:29 +0000
committerCarsten Weisse <[email protected]>2004-07-16 12:12:29 +0000
commite229dac5a749c49f6a02e696304d66b5f3d6feb9 (patch)
tree30d8ec6c7bec20fed5fe99ecf64c6460a65a708c /src/jake2
parentc19debe92ce0eb509cd5c3596b7f858e40424451 (diff)
this will solve the flickering bug on "Loading"
(but only with a new JOGL-release)
Diffstat (limited to 'src/jake2')
-rw-r--r--src/jake2/render/JoglBase.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jake2/render/JoglBase.java b/src/jake2/render/JoglBase.java
index 113cd28..6a1b91b 100644
--- a/src/jake2/render/JoglBase.java
+++ b/src/jake2/render/JoglBase.java
@@ -2,7 +2,7 @@
* JoglCommon.java
* Copyright (C) 2004
*
- * $Id: JoglBase.java,v 1.4 2004-07-16 10:11:34 cawe Exp $
+ * $Id: JoglBase.java,v 1.5 2004-07-16 12:12:29 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -199,6 +199,9 @@ public abstract class JoglBase implements GLEventListener {
//canvas.setGL(new DebugGL(canvas.getGL()));
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);
window.getContentPane().add(canvas);
@@ -293,7 +296,8 @@ public abstract class JoglBase implements GLEventListener {
protected void GLimp_EndFrame() {
gl.glFlush();
// swap buffer
- // but jogl has no method to swap
+// TODO this and a new JOGL-release solves the flickering bug (Loading)
+// canvas.swapBuffers();
}
protected void GLimp_BeginFrame(float camera_separation) {
// do nothing