From f3169b6cfb8d8b1ba741ad9dcef82ddde64e108a Mon Sep 17 00:00:00 2001
From: Sven Gothel <sgothel@jausoft.com>
Date: Mon, 22 Nov 2010 12:47:24 +0100
Subject: JOGL/X11 Shutdown: Don't close pending Display connections since it
 may cause a SIGSEGV at JVM exit.

---
 .../classes/com/jogamp/opengl/impl/x11/glx/X11GLXDrawableFactory.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/jogl/classes/com/jogamp/opengl/impl')

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 d4df76315..4412a7a1c 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
@@ -394,7 +394,9 @@ public class X11GLXDrawableFactory extends GLDrawableFactoryImpl {
   protected final void shutdownInstance() {
     sharedResourcesRunner.releaseAndWait();
 
-    X11Util.shutdown( true, DEBUG );
+    // Don't really close pending Display connections,
+    // since this may trigger a JVM exception
+    X11Util.shutdown( false, DEBUG );
   }
 
   protected final GLDrawableImpl createOnscreenDrawableImpl(NativeSurface target) {
-- 
cgit v1.2.3