diff options
author | Michael Bien <[email protected]> | 2009-07-24 17:22:11 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-07-24 17:22:11 +0200 |
commit | 2a8e9876ca4567de3b08813c280d006f9b2c32e6 (patch) | |
tree | a44911062f30e557255162772c9b5fa64d1ad59a /src/jogl/classes/javax/media/opengl/DefaultGLCapabilitiesChooser.java | |
parent | 801df10c0ee6ac6da81f1eb770dbc8a7ff7c5e38 (diff) | |
parent | 0906140a18690a9dced8dec12dfdd8cf4c95a4df (diff) |
Merge branch 'master' of ssh://[email protected]/jogl~jogl-git
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/DefaultGLCapabilitiesChooser.java')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/DefaultGLCapabilitiesChooser.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jogl/classes/javax/media/opengl/DefaultGLCapabilitiesChooser.java b/src/jogl/classes/javax/media/opengl/DefaultGLCapabilitiesChooser.java index 782d041a5..cc7afaa95 100644 --- a/src/jogl/classes/javax/media/opengl/DefaultGLCapabilitiesChooser.java +++ b/src/jogl/classes/javax/media/opengl/DefaultGLCapabilitiesChooser.java @@ -81,7 +81,7 @@ import javax.media.nativewindow.NativeWindowException; */ public class DefaultGLCapabilitiesChooser implements GLCapabilitiesChooser { - private static final boolean DEBUG = false; // FIXME: Debug.debug("DefaultGLCapabilitiesChooser"); + private static final boolean DEBUG = true; // FIXME: Debug.debug("DefaultGLCapabilitiesChooser"); public int chooseCapabilities(Capabilities desired, Capabilities[] available, @@ -128,6 +128,9 @@ public class DefaultGLCapabilitiesChooser implements GLCapabilitiesChooser { if (cur == null) { continue; } + if (_desired.isOnscreen() != cur.isOnscreen()) { + continue; + } if (_desired.getStereo() != cur.getStereo()) { continue; } |