From ff22a4f5a17eac8402706993dd54f75b6fae0110 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Tue, 10 May 2005 16:23:34 +0000 Subject: 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 --- src/net/java/games/jogl/GLJPanel.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/net/java/games/jogl/GLJPanel.java') 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); + } } }); } -- cgit v1.2.3