From 4d5957a22a4464e20f968bacc7f755267e19406f Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 30 Apr 2005 15:37:42 +0000 Subject: [PATCH] Corrected AWTGLCanvas documentation --- src/java/org/lwjgl/opengl/AWTGLCanvas.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/org/lwjgl/opengl/AWTGLCanvas.java b/src/java/org/lwjgl/opengl/AWTGLCanvas.java index 1766ae4e..42acb651 100644 --- a/src/java/org/lwjgl/opengl/AWTGLCanvas.java +++ b/src/java/org/lwjgl/opengl/AWTGLCanvas.java @@ -192,7 +192,7 @@ public class AWTGLCanvas extends Canvas implements Drawable, ComponentListener, /** * Make the canvas' context current. It is highly recommended that the context - * is only made current inside the AWT thread (for example in an overridden paint()). + * is only made current inside the AWT thread (for example in an overridden paintGL()). */ public synchronized void makeCurrent() throws LWJGLException { if (context == null) @@ -222,6 +222,10 @@ public class AWTGLCanvas extends Canvas implements Drawable, ComponentListener, protected void paintGL() { } + /** + * The default paint() operation makes the context current and calls paintGL() which should + * be overridden to do GL operations. + */ public final void paint(Graphics g) { try { if (peer_info == null)