summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-03 03:13:45 +0200
committerSven Gothel <[email protected]>2011-09-03 03:13:45 +0200
commitbbdd6f95687da343bf7a6550c3bc9bb4444116e5 (patch)
tree027da6de1a88bc143b1d2f4edb4cadcf68d8546f /src/jogl/classes/jogamp/opengl
parent9955e053ac28d1dc1f6722893d7989d5e2b710c3 (diff)
Complete translucency support (core w/ X11 (only) - tested w/ NEWT)
DefaultGLCapabilitiesChooser: - Add penalty for opaque mismatch: dbl-buf > opaq > stencil GLGraphicsConfigurationFactory: - Case no-chooser && has-recommended-idx: - Only use recommended index if caps is opaque, otherwise use default chooser to validate translucency NativeWindow Capabilities: - transparent default values -> 0 Added NEWT Test: TestTranslucencyNEWT Added command line translucency/undecorated options for TestGearsES2NEWT
Diffstat (limited to 'src/jogl/classes/jogamp/opengl')
-rw-r--r--src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationFactory.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationFactory.java b/src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationFactory.java
index e51e997a3..6fe9f080c 100644
--- a/src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationFactory.java
+++ b/src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationFactory.java
@@ -49,9 +49,9 @@ public abstract class GLGraphicsConfigurationFactory extends GraphicsConfigurati
return -1; // none available
}
- if(null == chooser && 0 <= recommendedIndex) {
+ if(null == chooser && 0 <= recommendedIndex && capsRequested.isBackgroundOpaque()) {
if (DEBUG) {
- System.err.println("chooseCapabilities: Using recommendedIndex: idx " + recommendedIndex);
+ System.err.println("chooseCapabilities: Using recommendedIndex (opaque): idx " + recommendedIndex);
}
return recommendedIndex;
}