diff options
author | Sven Gothel <[email protected]> | 2010-05-04 07:07:19 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-05-04 07:07:19 +0200 |
commit | 7fad4be03e6d9987be420444364b6714667d32cc (patch) | |
tree | 2d3196944902e1d285ab10f3462ff866d07e10ef /src/jogl/classes/com/jogamp/opengl/impl/x11 | |
parent | 9e792dcef900de7039cd277459c0629abfab9f21 (diff) |
Remove critical path in shutdown ..
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/impl/x11')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXDrawableFactory.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXDrawableFactory.java b/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXDrawableFactory.java index aa1767c48..823809f43 100644 --- a/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXDrawableFactory.java +++ b/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXDrawableFactory.java @@ -151,12 +151,14 @@ public class X11GLXDrawableFactory extends GLDrawableFactoryImpl implements Dyna } } + // don't free native resources from this point on, + // since we might be in a critical shutdown hook sequence if(null!=sharedDrawable) { - sharedDrawable.destroy(); + // may cause deadlock: sharedDrawable.destroy(); sharedDrawable=null; } if(null!=sharedScreen) { - X11Util.closeThreadLocalDisplay(null); + // may cause deadlock: X11Util.closeThreadLocalDisplay(null); sharedScreen = null; sharedDevice=null; } |