From 42057f5b9b869013680500231b51be261b4139d8 Mon Sep 17 00:00:00 2001 From: Sven Gothel <sgothel@jausoft.com> Date: Mon, 31 Jan 2011 15:06:14 +0100 Subject: Fix: In case no shared resource is available, query the GLXVersion. --- .../com/jogamp/opengl/impl/x11/glx/X11GLXDrawableFactory.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/jogl/classes/com/jogamp/opengl/impl/x11') 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; } -- cgit v1.2.3