aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes')
-rw-r--r--src/classes/share/javax/media/j3d/Canvas3D.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/classes/share/javax/media/j3d/Canvas3D.java b/src/classes/share/javax/media/j3d/Canvas3D.java
index 0758803..f617565 100644
--- a/src/classes/share/javax/media/j3d/Canvas3D.java
+++ b/src/classes/share/javax/media/j3d/Canvas3D.java
@@ -1317,6 +1317,13 @@ public class Canvas3D extends Canvas {
view.universe.checkForEnableEvents();
}
+ // Issue 131: Call redraw() if this is an auto-off-screen Canvas3D,
+ // so it will start up correctly. It isn't necessary to do this for
+ // on-screen Canvas3Ds because redraw() will be called when we
+ // get the first paint().
+ if (offScreen) {
+ redraw();
+ }
}
// When this canvas is removed a frame, this notification gets called. We