From 8aa90c17b6d44515efee8abcc592b41c9ad854dc Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Tue, 15 Jul 2003 05:35:21 +0000 Subject: 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 --- src/net/java/games/jogl/GLCanvas.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/net') 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); } -- cgit v1.2.3