aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2003-07-15 05:35:21 +0000
committerKenneth Russel <[email protected]>2003-07-15 05:35:21 +0000
commit8aa90c17b6d44515efee8abcc592b41c9ad854dc (patch)
treeefb5d55f275ecbdb7b0e456479c3a505a82371f9 /src
parent893596e90c9680af58b6d05c934d8371eebad284 (diff)
Fixed issue 1: GLCanvas flickers when using repaint
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@30 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src')
-rw-r--r--src/net/java/games/jogl/GLCanvas.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/java/games/jogl/GLCanvas.java b/src/net/java/games/jogl/GLCanvas.java
index 474dd238d..d5f6dbfdc 100644
--- a/src/net/java/games/jogl/GLCanvas.java
+++ b/src/net/java/games/jogl/GLCanvas.java
@@ -124,6 +124,12 @@ public final class GLCanvas extends Canvas implements GLDrawable {
}, true, initAction);
}
+ /** Overridden from Canvas to prevent Java2D's clearing of the
+ canvas from interfering with the OpenGL rendering. */
+ public void update(Graphics g) {
+ paint(g);
+ }
+
public void addGLEventListener(GLEventListener listener) {
drawableHelper.addGLEventListener(listener);
}