diff options
author | Kenneth Russel <[email protected]> | 2005-05-10 16:23:34 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-05-10 16:23:34 +0000 |
commit | ff22a4f5a17eac8402706993dd54f75b6fae0110 (patch) | |
tree | 4099be5135b470909867953b0b5db1ffe0d29784 /src/net/java/games/jogl/GLJPanel.java | |
parent | d34ebafbd61123d369a1657b8e9bb2db5d45ba6a (diff) |
Fixed race condition in GLJPanel implementation and improved behavior
of JRefract demo on Linux
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@266 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/jogl/GLJPanel.java')
-rw-r--r-- | src/net/java/games/jogl/GLJPanel.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/java/games/jogl/GLJPanel.java b/src/net/java/games/jogl/GLJPanel.java index bf102710b..07399b978 100644 --- a/src/net/java/games/jogl/GLJPanel.java +++ b/src/net/java/games/jogl/GLJPanel.java @@ -489,7 +489,10 @@ public final class GLJPanel extends JPanel implements GLDrawable { pbufferInitializationCompleted = true; EventQueue.invokeLater(new Runnable() { public void run() { - toplevel.setVisible(false); + // Race conditions might dispose of this before now + if (toplevel != null) { + toplevel.setVisible(false); + } } }); } |