summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/javax/media/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-10-09 21:35:50 +0200
committerSven Gothel <[email protected]>2011-10-09 21:35:50 +0200
commit51a9f23d629cd4e6b22d7afaf009bb96b2ed270f (patch)
tree9091c9640b4cb0f09de6c3cc036103aa920fe3dd /src/jogl/classes/javax/media/opengl
parent0c138d5410ed32bdeef22052b57f1bcecf6b5d4f (diff)
DefaultGLCapabilitiesChooser: Punish sample extension mismatch also if req == default && req != given
Diffstat (limited to 'src/jogl/classes/javax/media/opengl')
-rw-r--r--src/jogl/classes/javax/media/opengl/DefaultGLCapabilitiesChooser.java3
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;
}
}