From b54497155815852744adb657816cb4057948dae2 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 31 Aug 2011 15:33:22 +0200 Subject: Workaround for X11/ATI fglrx bug 515 - Multiple Display Connections https://jogamp.org/bugzilla/show_bug.cgi?id=515 --- src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/jogl/classes/jogamp') diff --git a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java index 39bcd2f37..d2c555a1c 100644 --- a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java +++ b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java @@ -177,6 +177,10 @@ public class X11GLXDrawableFactory extends GLDrawableFactoryImpl { sharedDevice.lock(); try { String glXVendorName = GLXUtil.getVendorName(sharedDevice.getHandle()); + if(X11Util.ATI_HAS_XCLOSEDISPLAY_BUG && GLXUtil.isVendorATI(glXVendorName)) { + X11Util.setMarkAllDisplaysUnclosable(true); + X11Util.markDisplayUncloseable(sharedDevice.getHandle()); + } X11GraphicsScreen sharedScreen = new X11GraphicsScreen(sharedDevice, 0); if (null == sharedScreen) { -- cgit v1.2.3