From 67416edded227ed11069fb32b573f6c915c9408e Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 11 Jan 2007 14:28:17 +0000 Subject: Added -Djogl.drihack.disable for manual disabling of DRI hack git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1080 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/com/sun/opengl/impl/x11/DRIHack.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/classes/com/sun/opengl/impl/x11') diff --git a/src/classes/com/sun/opengl/impl/x11/DRIHack.java b/src/classes/com/sun/opengl/impl/x11/DRIHack.java index f6579238e..4dda1305f 100644 --- a/src/classes/com/sun/opengl/impl/x11/DRIHack.java +++ b/src/classes/com/sun/opengl/impl/x11/DRIHack.java @@ -90,6 +90,11 @@ public class DRIHack { (os.startsWith("linux") || new File("/usr/lib/dri").exists() || new File("/usr/X11R6/lib/modules/dri").exists()); + // Allow manual overriding for now as a workaround for + // problems seen in some situations -- needs more investigation + if (System.getProperty("jogl.drihack.disable") != null) { + driHackNeeded = false; + } return null; } }); -- cgit v1.2.3