aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl/impl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-01-31 15:06:14 +0100
committerSven Gothel <[email protected]>2011-01-31 15:06:14 +0100
commit42057f5b9b869013680500231b51be261b4139d8 (patch)
tree911f4ae71803520f5fd747e84387765e66f9f53e /src/jogl/classes/com/jogamp/opengl/impl
parentf62b95c7bf2997bf7c309a7a186c4f46155f7c2a (diff)
Fix: In case no shared resource is available, query the GLXVersion.
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/impl')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXDrawableFactory.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXDrawableFactory.java b/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXDrawableFactory.java
index 7f16ef1a4..54be2d471 100644
--- a/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXDrawableFactory.java
+++ b/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXDrawableFactory.java
@@ -180,6 +180,7 @@ public class X11GLXDrawableFactory extends GLDrawableFactoryImpl {
if (null == sharedScreen) {
throw new GLException("Couldn't create shared screen for device: "+sharedDevice+", idx 0");
}
+ // GLProfile glp = GLProfile.getMinDesktop(sharedDevice);
GLProfile glp = GLProfile.getDefault(sharedDevice);
if (null == glp) {
throw new GLException("Couldn't get default GLProfile for device: "+sharedDevice);
@@ -369,6 +370,10 @@ public class X11GLXDrawableFactory extends GLDrawableFactoryImpl {
if(null!=sr) {
return sr.isGLXVersionGreaterEqualOneThree();
}
+ if( device instanceof X11GraphicsDevice ) {
+ VersionNumber v = getGLXVersion( (X11GraphicsDevice) device);
+ return ( null != v ) ? v.compareTo(versionOneThree) >= 0 : false ;
+ }
return false;
}