summaryrefslogtreecommitdiffstats
path: root/src/classes
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-02-02 00:29:03 +0000
committerKenneth Russel <[email protected]>2006-02-02 00:29:03 +0000
commit253c1d9ef69c3415843b2aca155ff395e17f6105 (patch)
tree0abf58dd859592e6faf8ffde2900edb373051c94 /src/classes
parente71a8145d335a28a3bef3f20a85d2a430189f943 (diff)
Fixed problem with pbuffers on X11 with ATI hardware; workaround was
not working with latest drivers; new suggested workaround from Chris Campbell git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@578 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes')
-rw-r--r--src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java b/src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java
index f717b5a87..6d6f02441 100644
--- a/src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java
+++ b/src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java
@@ -205,10 +205,11 @@ public class X11GLDrawableFactory extends GLDrawableFactoryImpl {
int screen = 0; // FIXME: provide way to specify this?
// Work around bugs in ATI's Linux drivers where they report they
- // only implement GLX version 1.2 but actually do support pbuffers
+ // only implement GLX version 1.2 on the server side
if (major[0] == 1 && minor[0] == 2) {
- String str = GLX.glXQueryServerString(display, screen, GLX.GLX_VENDOR);
- if (str != null && str.indexOf("ATI") >= 0) {
+ String str = GLX.glXGetClientString(display, GLX.GLX_VERSION);
+ if (str != null && str.startsWith("1.") &&
+ (str.charAt(2) >= '3')) {
canCreateGLPbuffer = true;
}
} else {