aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2006-11-29 13:17:48 +0000
committerCarsten Weisse <[email protected]>2006-11-29 13:17:48 +0000
commitdb02db30cd56d810d1646d4ad2ef4d667eef6652 (patch)
tree578f919a13f97035c5c9066721e1c160f6adc56e /src
parentedafc0f4d2b10f629db546f12315dea9e17f05e8 (diff)
hope this solves the pixel flicker problem on some Win32 systems
Diffstat (limited to 'src')
-rw-r--r--src/jake2/render/opengl/Jsr231Driver.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/jake2/render/opengl/Jsr231Driver.java b/src/jake2/render/opengl/Jsr231Driver.java
index acb7a4b..45578b3 100644
--- a/src/jake2/render/opengl/Jsr231Driver.java
+++ b/src/jake2/render/opengl/Jsr231Driver.java
@@ -2,7 +2,7 @@
* JoglCommon.java
* Copyright (C) 2004
*
- * $Id: Jsr231Driver.java,v 1.7 2006-11-29 12:56:20 cawe Exp $
+ * $Id: Jsr231Driver.java,v 1.8 2006-11-29 13:17:48 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -302,6 +302,13 @@ public abstract class Jsr231Driver extends Jsr231GL implements GLDriver {
activate();
return context.getGL();
}
+ /** <B>Overrides:</B>
+ <DL><DD><CODE>paint</CODE> in class <CODE>java.awt.Component</CODE></DD></DL> */
+ // Overridden from Canvas to prevent the AWT's clearing of the
+ // canvas from interfering with the OpenGL rendering.
+ public void paint(Graphics g) {
+ // do nothing
+ }
/** <B>Overrides:</B>
<DL><DD><CODE>update</CODE> in class <CODE>java.awt.Component</CODE></DD></DL> */