summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/egl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-03-20 05:12:18 +0100
committerSven Gothel <[email protected]>2011-03-20 05:12:18 +0100
commitb7f148db1a2775ee9ea6af3e057995a9185d311e (patch)
tree2ee8168ebd76503ac87552c0146c8e2ecf58cb0a /src/jogl/classes/jogamp/opengl/egl
parent3df74690ffd910314364566a8fd6eb2c8242f96a (diff)
Refine getAvailableGLCapabilitiesImpl (XGL, WGL and EGL): Sort only if size > 1
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/egl')
-rw-r--r--src/jogl/classes/jogamp/opengl/egl/EGLGraphicsConfigurationFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLGraphicsConfigurationFactory.java b/src/jogl/classes/jogamp/opengl/egl/EGLGraphicsConfigurationFactory.java
index 78c0da6a5..bcaabfc48 100644
--- a/src/jogl/classes/jogamp/opengl/egl/EGLGraphicsConfigurationFactory.java
+++ b/src/jogl/classes/jogamp/opengl/egl/EGLGraphicsConfigurationFactory.java
@@ -125,7 +125,7 @@ public class EGLGraphicsConfigurationFactory extends GLGraphicsConfigurationFact
if (numConfigs[0] > 0) {
GLProfile glp = GLProfile.getDefault(device);
availableCaps = eglConfigs2GLCaps(glp, eglDisplay, configs, numConfigs[0], GLGraphicsConfigurationUtil.ALL_BITS);
- if( null != availableCaps ) {
+ if( null != availableCaps && availableCaps.size() > 1) {
Collections.sort(availableCaps, EglCfgIDComparator);
}
}