diff options
-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); } |