diff options
author | Kenneth Russel <[email protected]> | 2006-04-01 20:00:00 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-04-01 20:00:00 +0000 |
commit | 8dbb2f29c8538b485fff5f07c46bf26020433289 (patch) | |
tree | 7a2f2794ae205239a593cb9e244a07ca78758b2e /src | |
parent | 8e76cced29110d6fc0efece6459d7c616c11b139 (diff) |
Forced enabling of DRI hack on all Linux distributions
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@696 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/com/sun/opengl/impl/x11/DRIHack.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/classes/com/sun/opengl/impl/x11/DRIHack.java b/src/classes/com/sun/opengl/impl/x11/DRIHack.java index 5f818895d..40b7d1950 100644 --- a/src/classes/com/sun/opengl/impl/x11/DRIHack.java +++ b/src/classes/com/sun/opengl/impl/x11/DRIHack.java @@ -87,8 +87,11 @@ public class DRIHack { public static void begin() { AccessController.doPrivileged(new PrivilegedAction() { public Object run() { + String os = System.getProperty("os.name").toLowerCase(); + // Do DRI hack on all Linux distributions for best robustness driHackNeeded = - (new File("/usr/lib/dri").exists() || + (os.startsWith("linux") || + new File("/usr/lib/dri").exists() || new File("/usr/X11R6/lib/modules/dri").exists()); return null; } |