From 51a9f23d629cd4e6b22d7afaf009bb96b2ed270f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 9 Oct 2011 21:35:50 +0200 Subject: DefaultGLCapabilitiesChooser: Punish sample extension mismatch also if req == default && req != given --- src/jogl/classes/javax/media/opengl/DefaultGLCapabilitiesChooser.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/jogl/classes/javax/media') diff --git a/src/jogl/classes/javax/media/opengl/DefaultGLCapabilitiesChooser.java b/src/jogl/classes/javax/media/opengl/DefaultGLCapabilitiesChooser.java index 803a47c34..1bb509479 100644 --- a/src/jogl/classes/javax/media/opengl/DefaultGLCapabilitiesChooser.java +++ b/src/jogl/classes/javax/media/opengl/DefaultGLCapabilitiesChooser.java @@ -141,7 +141,6 @@ public class DefaultGLCapabilitiesChooser implements GLCapabilitiesChooser { scores[i] = NO_SCORE; } final int gldes_samples = gldes.getSampleBuffers() ? gldes.getNumSamples() : 0; - final boolean gldes_defaultSampleExt = gldes.getSampleExtension().equals(GLCapabilitiesImmutable.DEFAULT_SAMPLE_EXTENSION); // Compute score for each for (int i = 0; i < availnum; i++) { @@ -193,7 +192,7 @@ public class DefaultGLCapabilitiesChooser implements GLCapabilitiesChooser { if (cur_samples == 0) { score += sign(score) * MULTISAMPLE_MISMATCH_PENALTY; } - if (!gldes_defaultSampleExt && !gldes.getSampleExtension().equals(cur.getSampleExtension())) { + if (!gldes.getSampleExtension().equals(cur.getSampleExtension())) { score += sign(score) * MULTISAMPLE_EXTENSION_MISMATCH_PENALTY; } } -- cgit v1.2.3