diff options
author | Kenneth Russel <[email protected]> | 2003-07-15 05:35:21 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2003-07-15 05:35:21 +0000 |
commit | 8aa90c17b6d44515efee8abcc592b41c9ad854dc (patch) | |
tree | efb5d55f275ecbdb7b0e456479c3a505a82371f9 | |
parent | 893596e90c9680af58b6d05c934d8371eebad284 (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
-rw-r--r-- | src/net/java/games/jogl/GLCanvas.java | 6 |
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); } |