From 8dbb2f29c8538b485fff5f07c46bf26020433289 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sat, 1 Apr 2006 20:00:00 +0000 Subject: 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 --- src/classes/com/sun/opengl/impl/x11/DRIHack.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/classes/com/sun/opengl/impl') 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; } -- cgit v1.2.3