aboutsummaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-10-01 03:04:52 +0200
committerSven Gothel <[email protected]>2011-10-01 03:04:52 +0200
commit8612203a071f32b81f692374f17f495336cad64f (patch)
tree05de534971974556daf314b0756751224a77bc9d /src/nativewindow/classes
parentdf3c10d8bb7c220b4837733a2fc5a53b7f56f50d (diff)
DefaultGLCapabilitiesChooser: Add multisampling criteria
Diffstat (limited to 'src/nativewindow/classes')
-rw-r--r--src/nativewindow/classes/javax/media/nativewindow/DefaultCapabilitiesChooser.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nativewindow/classes/javax/media/nativewindow/DefaultCapabilitiesChooser.java b/src/nativewindow/classes/javax/media/nativewindow/DefaultCapabilitiesChooser.java
index e2e1c5a82..6709344b5 100644
--- a/src/nativewindow/classes/javax/media/nativewindow/DefaultCapabilitiesChooser.java
+++ b/src/nativewindow/classes/javax/media/nativewindow/DefaultCapabilitiesChooser.java
@@ -40,8 +40,11 @@
package javax.media.nativewindow;
+import java.security.AccessController;
import java.util.List;
+import jogamp.nativewindow.Debug;
+
/** <P> The default implementation of the {@link
CapabilitiesChooser} interface, which provides consistent visual
selection behavior across platforms. The precise algorithm is
@@ -64,7 +67,7 @@ import java.util.List;
*/
public class DefaultCapabilitiesChooser implements CapabilitiesChooser {
- private static final boolean DEBUG = false; // FIXME: Debug.debug("DefaultCapabilitiesChooser");
+ private static final boolean DEBUG = Debug.isPropertyDefined("nativewindow.debug.CapabilitiesChooser", true, AccessController.getContext());
public int chooseCapabilities(final CapabilitiesImmutable desired,
final List /*<CapabilitiesImmutable>*/ available,