summaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-04-01 20:00:00 +0000
committerKenneth Russel <[email protected]>2006-04-01 20:00:00 +0000
commit8dbb2f29c8538b485fff5f07c46bf26020433289 (patch)
tree7a2f2794ae205239a593cb9e244a07ca78758b2e /src/classes/com/sun/opengl/impl
parent8e76cced29110d6fc0efece6459d7c616c11b139 (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/classes/com/sun/opengl/impl')
-rw-r--r--src/classes/com/sun/opengl/impl/x11/DRIHack.java5
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;
}