diff options
author | Sven Gothel <[email protected]> | 2011-10-09 21:35:50 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-10-09 21:35:50 +0200 |
commit | 51a9f23d629cd4e6b22d7afaf009bb96b2ed270f (patch) | |
tree | 9091c9640b4cb0f09de6c3cc036103aa920fe3dd /src/jogl | |
parent | 0c138d5410ed32bdeef22052b57f1bcecf6b5d4f (diff) |
DefaultGLCapabilitiesChooser: Punish sample extension mismatch also if req == default && req != given
Diffstat (limited to 'src/jogl')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/DefaultGLCapabilitiesChooser.java | 3 |
1 files changed, 1 insertions, 2 deletions
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; } } |