diff options
author | Sven Gothel <[email protected]> | 2011-03-20 05:12:18 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-03-20 05:12:18 +0100 |
commit | b7f148db1a2775ee9ea6af3e057995a9185d311e (patch) | |
tree | 2ee8168ebd76503ac87552c0146c8e2ecf58cb0a /src/jogl/classes/jogamp/opengl/x11/glx | |
parent | 3df74690ffd910314364566a8fd6eb2c8242f96a (diff) |
Refine getAvailableGLCapabilitiesImpl (XGL, WGL and EGL): Sort only if size > 1
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/x11/glx')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/x11/glx/X11GLXGraphicsConfigurationFactory.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXGraphicsConfigurationFactory.java b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXGraphicsConfigurationFactory.java index 319a52c07..b984f1633 100644 --- a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXGraphicsConfigurationFactory.java +++ b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXGraphicsConfigurationFactory.java @@ -111,10 +111,10 @@ public class X11GLXGraphicsConfigurationFactory extends GLGraphicsConfigurationF if( sharedResource.isGLXVersionGreaterEqualOneThree() ) { availableCaps = getAvailableGLCapabilitiesFBConfig(sharedScreen, glp); } - if( null == availableCaps || 0 == availableCaps.size() ) { + if( null == availableCaps || availableCaps.isEmpty() ) { availableCaps = getAvailableGLCapabilitiesXVisual(sharedScreen, glp); } - if( null != availableCaps ) { + if( null != availableCaps && availableCaps.size() > 1 ) { Collections.sort(availableCaps, XVisualIDComparator); } return availableCaps; |