summaryrefslogtreecommitdiffstats
path: root/src/jogl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-08-31 15:33:22 +0200
committerSven Gothel <[email protected]>2011-08-31 15:33:22 +0200
commitb54497155815852744adb657816cb4057948dae2 (patch)
treee55f600951148661e8ad7611b5766581e3a18c17 /src/jogl
parentc75785dcc4758b3d865c5ccf6677389ab112d2fb (diff)
Workaround for X11/ATI fglrx bug 515 - Multiple Display Connections
https://jogamp.org/bugzilla/show_bug.cgi?id=515
Diffstat (limited to 'src/jogl')
-rw-r--r--src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java4
1 files changed, 4 insertions, 0 deletions
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) {