diff options
author | Sven Gothel <[email protected]> | 2011-11-05 05:51:40 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-11-05 05:51:40 +0100 |
commit | 6d57bd7717834afcd5f1dc3b60d696eda1997fe8 (patch) | |
tree | a1ad158532dafb018044bc101301901cc08473ca /src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java | |
parent | fe4f9f3f83cda05052549cc34fb3f7acb4eabb9c (diff) |
Cleanup ; JAWT* version flag setting based whether
Cleanup
- use Platform OS_TYPE
- ..
JAWT* version flag
- if JAWTWindow is Applet, attempt offscreenLayer if avail
- ..
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java b/src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java index 318d00637..1f8ba5cc4 100644 --- a/src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java +++ b/src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java @@ -146,6 +146,17 @@ public class GLGraphicsConfigurationUtil { return capsRequested; } + public static GLCapabilitiesImmutable fixSingleBufferGLCapabilities(GLCapabilitiesImmutable capsRequested) + { + if( capsRequested.getDoubleBuffered() ) { + // fix caps .. + GLCapabilities caps2 = (GLCapabilities) capsRequested.cloneMutable(); + caps2.setDoubleBuffered(false); // FIXME DBLBUFOFFSCRN + return caps2; + } + return capsRequested; + } + public static GLCapabilitiesImmutable fixOpaqueGLCapabilities(GLCapabilitiesImmutable capsRequested, boolean isOpaque) { GLCapabilities caps2 = null; |