diff options
author | Kenneth Russel <[email protected]> | 2007-01-21 01:27:28 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2007-01-21 01:27:28 +0000 |
commit | 394ee26b8411958c1643b88b412bb9e9f9c512c0 (patch) | |
tree | 01039f80ea101a2a5bdea1e82595419dda72eff1 /src/classes/com/sun | |
parent | 1452e67ee4c6dc1da54119c86e37225ac6b3b559 (diff) |
Fixed Issue 262: DRIHack problems with ATI and possibly other drivers
Added support to GlueGen's NativeLibrary class for relative library
path names which do not require expansion; for example, "libGL.so.1".
Changed the DRIHack to first attempt to open libGL.so.1 instead of
"GL", which expanded to "libGL.so". For some reason, this causes ATI's
drivers to be picked up properly. Tested with various JOGL demos.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1093 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun')
-rw-r--r-- | src/classes/com/sun/opengl/impl/x11/DRIHack.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/classes/com/sun/opengl/impl/x11/DRIHack.java b/src/classes/com/sun/opengl/impl/x11/DRIHack.java index 4dda1305f..35a1c8fc7 100644 --- a/src/classes/com/sun/opengl/impl/x11/DRIHack.java +++ b/src/classes/com/sun/opengl/impl/x11/DRIHack.java @@ -106,13 +106,8 @@ public class DRIHack { // Try a few different variants for best robustness // In theory probably only the first is necessary - oglLib = NativeLibrary.open("GL", null); - if (DEBUG && oglLib != null) System.err.println(" Found libGL.so"); - // Allow ATI's fglrx to supersede version in /usr/lib - if (oglLib == null) { - oglLib = NativeLibrary.open("/usr/lib/ati-fglrx/libGL.so.1.2", null); - if (DEBUG && oglLib != null) System.err.println(" Found /usr/lib/ati-fglrx/libGL.so.1.2"); - } + oglLib = NativeLibrary.open("libGL.so.1", null); + if (DEBUG && oglLib != null) System.err.println(" Found libGL.so.1"); if (oglLib == null) { oglLib = NativeLibrary.open("/usr/lib/libGL.so.1", null); if (DEBUG && oglLib != null) System.err.println(" Found /usr/lib/libGL.so.1"); |